|
|
|
@ -6,15 +6,6 @@ import ( |
|
|
|
|
"time" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func TestKeyManagement(t *testing.T) { |
|
|
|
|
whisper := New() |
|
|
|
|
|
|
|
|
|
key := whisper.NewIdentity() |
|
|
|
|
if !whisper.HasIdentity(key) { |
|
|
|
|
t.Error("expected whisper to have identify") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func TestEvent(t *testing.T) { |
|
|
|
|
res := make(chan *Message, 1) |
|
|
|
|
whisper := New() |
|
|
|
|