Skip to content

Commit

Permalink
Use non-nil error when err is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
bstrausser committed Apr 26, 2024
1 parent dffe996 commit 53d9a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/postgres/postgres_test.go
Expand Up @@ -291,7 +291,7 @@ func TestSSLValidatesKeyMaterialPath(t *testing.T) {
postgres.WithSSLSettings(sslSettings),
)
if err == nil {
t.Fatal(err)
t.Fatal("Error should not have been nil. Container creation should have failed due to empty key material")
}
}

Expand Down

0 comments on commit 53d9a1a

Please sign in to comment.