whisper: test fixed

This commit is contained in:
Vlad 2018-02-27 15:52:10 +01:00
parent dadf4d53ab
commit 5e30a5f66e
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ func singleRequest(t *testing.T, server *WMailServer, env *whisper.Envelope, p *
src[0]++
ok, lower, upper, topic = server.validateRequest(src, request)
if ok {
if !ok {
// request should be valid regardless of signature
t.Fatalf("request validation false positive, seed: %d (lower: %d, upper: %d).", seed, lower, upper)
}
}