diff --git a/whisper/whisperv5/filter_test.go b/whisper/whisperv5/filter_test.go index 2f3a679111..41ebb71146 100644 --- a/whisper/whisperv5/filter_test.go +++ b/whisper/whisperv5/filter_test.go @@ -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) {