aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorVlad <gluk256@gmail.com>2018-02-27 22:52:10 +0800
committerVlad <gluk256@gmail.com>2018-02-27 22:52:10 +0800
commit5e30a5f66e126d35c00276abffe32d99182a1bc7 (patch)
tree8b23cad3f9792e443c12e8be2656e258e5190d7b /whisper
parentdadf4d53abd8be13f59fb09820712d74ce8f89a7 (diff)
downloaddexon-5e30a5f66e126d35c00276abffe32d99182a1bc7.tar
dexon-5e30a5f66e126d35c00276abffe32d99182a1bc7.tar.gz
dexon-5e30a5f66e126d35c00276abffe32d99182a1bc7.tar.bz2
dexon-5e30a5f66e126d35c00276abffe32d99182a1bc7.tar.lz
dexon-5e30a5f66e126d35c00276abffe32d99182a1bc7.tar.xz
dexon-5e30a5f66e126d35c00276abffe32d99182a1bc7.tar.zst
dexon-5e30a5f66e126d35c00276abffe32d99182a1bc7.zip
whisper: test fixed
Diffstat (limited to 'whisper')
-rw-r--r--whisper/mailserver/server_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/whisper/mailserver/server_test.go b/whisper/mailserver/server_test.go
index c8e0a553a..aeb317e59 100644
--- a/whisper/mailserver/server_test.go
+++ b/whisper/mailserver/server_test.go
@@ -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)
}
}