whisper: Call Fatalf in symkey hash test a.s.a a discrepancy is found

This commit is contained in:
Guillaume Ballet 2017-09-21 13:42:02 +02:00
parent 4fcc7ae046
commit 4d241a5d75

View file

@ -152,16 +152,12 @@ func TestInstallSymKeyGeneratesHash(t *testing.T) {
t.Fatalf("Error installing the filter: %v", err);
}
identicalBytes := true
for i, b := range filter.SymKeyHash {
if b != initialSymKeyHash[i] {
identicalBytes = false
t.Fatalf("The filter's symmetric key hash was not properly generated by Install")
break
}
}
if identicalBytes == false {
t.Fatalf("The filter's symmetric key hash was not properly generated by Install")
}
}
func TestComparePubKey(t *testing.T) {