diff options
author | Vlad <gluk256@gmail.com> | 2018-02-28 06:38:20 +0800 |
---|---|---|
committer | Vlad <gluk256@gmail.com> | 2018-02-28 06:38:20 +0800 |
commit | c733792be4b49ec47c5307b1a3b8fa116ea16933 (patch) | |
tree | 33e804424ca1e220c2a6ae9cd7177f8623893883 /whisper/whisperv6/whisper_test.go | |
parent | 014d8d98370abf770b89f7987a92999133e3d4ea (diff) | |
download | dexon-c733792be4b49ec47c5307b1a3b8fa116ea16933.tar dexon-c733792be4b49ec47c5307b1a3b8fa116ea16933.tar.gz dexon-c733792be4b49ec47c5307b1a3b8fa116ea16933.tar.bz2 dexon-c733792be4b49ec47c5307b1a3b8fa116ea16933.tar.lz dexon-c733792be4b49ec47c5307b1a3b8fa116ea16933.tar.xz dexon-c733792be4b49ec47c5307b1a3b8fa116ea16933.tar.zst dexon-c733792be4b49ec47c5307b1a3b8fa116ea16933.zip |
whsiper: refactoring
Diffstat (limited to 'whisper/whisperv6/whisper_test.go')
-rw-r--r-- | whisper/whisperv6/whisper_test.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/whisper/whisperv6/whisper_test.go b/whisper/whisperv6/whisper_test.go index 99e5f0bbb..3a219cd13 100644 --- a/whisper/whisperv6/whisper_test.go +++ b/whisper/whisperv6/whisper_test.go @@ -75,10 +75,6 @@ func TestWhisperBasic(t *testing.T) { if len(mail) != 0 { t.Fatalf("failed w.Envelopes().") } - m := w.Messages("non-existent") - if len(m) != 0 { - t.Fatalf("failed w.Messages.") - } derived := pbkdf2.Key([]byte(peerID), nil, 65356, aesKeyLength, sha256.New) if !validateDataIntegrity(derived, aesKeyLength) { @@ -593,7 +589,7 @@ func TestCustomization(t *testing.T) { } // check w.messages() - id, err := w.Subscribe(f) + _, err = w.Subscribe(f) if err != nil { t.Fatalf("failed subscribe with seed %d: %s.", seed, err) } @@ -602,11 +598,6 @@ func TestCustomization(t *testing.T) { if len(mail) > 0 { t.Fatalf("received premature mail") } - - mail = w.Messages(id) - if len(mail) != 2 { - t.Fatalf("failed to get whisper messages") - } } func TestSymmetricSendCycle(t *testing.T) { |