diff options
Diffstat (limited to 'whisper/whisperv5/whisper_test.go')
-rw-r--r-- | whisper/whisperv5/whisper_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/whisper/whisperv5/whisper_test.go b/whisper/whisperv5/whisper_test.go index a3ded7b37..c2ae35a3e 100644 --- a/whisper/whisperv5/whisper_test.go +++ b/whisper/whisperv5/whisper_test.go @@ -26,7 +26,7 @@ import ( ) func TestWhisperBasic(t *testing.T) { - w := NewWhisper(nil) + w := New() p := w.Protocols() shh := p[0] if shh.Name != ProtocolName { @@ -110,7 +110,7 @@ func TestWhisperBasic(t *testing.T) { } func TestWhisperIdentityManagement(t *testing.T) { - w := NewWhisper(nil) + w := New() id1 := w.NewIdentity() id2 := w.NewIdentity() pub1 := common.ToHex(crypto.FromECDSAPub(&id1.PublicKey)) @@ -186,7 +186,7 @@ func TestWhisperSymKeyManagement(t *testing.T) { InitSingleTest() var k1, k2 []byte - w := NewWhisper(nil) + w := New() id1 := string("arbitrary-string-1") id2 := string("arbitrary-string-2") @@ -304,7 +304,7 @@ func TestWhisperSymKeyManagement(t *testing.T) { func TestExpiry(t *testing.T) { InitSingleTest() - w := NewWhisper(nil) + w := New() w.test = true w.Start(nil) defer w.Stop() |