Skip to content

Commit

Permalink
TestParseRelease: fix missing assert
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Sep 18, 2019
1 parent 41cfcac commit 178af76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/parsers/kernel/kernel_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}
Expand Down

0 comments on commit 178af76

Please sign in to comment.