mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
whisper: Call Fatalf in symkey hash test a.s.a a discrepancy is found
This commit is contained in:
parent
4fcc7ae046
commit
4d241a5d75
1 changed files with 1 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue