TestParseRelease: fix missing assert
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
41cfcac7fc
commit
178af761b7
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ func TestParseRelease(t *testing.T) {
|
|||
for _, invalid := range invalids {
|
||||
expectedMessage := fmt.Sprintf("Can't parse kernel version %v", invalid)
|
||||
if _, err := ParseRelease(invalid); err == nil || err.Error() != expectedMessage {
|
||||
|
||||
if err == nil {
|
||||
t.Fatalf("Expected %q, got nil", expectedMessage)
|
||||
}
|
||||
t.Fatalf("Expected %q, got %q", expectedMessage, err.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue