fix(test): check errors instead of discarding with bare _
Replace bare _ error discards with t.Fatalf checks across sqlstore_test, crypto_test, server_test, and checker_test.
This commit was merged in pull request #152.
This commit is contained in:
@@ -75,8 +75,14 @@ func TestEncryptorUniqueCiphertexts(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
a, _ := enc.Encrypt("same")
|
||||
b, _ := enc.Encrypt("same")
|
||||
a, err := enc.Encrypt("same")
|
||||
if err != nil {
|
||||
t.Fatalf("first encrypt: %v", err)
|
||||
}
|
||||
b, err := enc.Encrypt("same")
|
||||
if err != nil {
|
||||
t.Fatalf("second encrypt: %v", err)
|
||||
}
|
||||
if a == b {
|
||||
t.Error("two encryptions of same plaintext should produce different ciphertexts")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user