Skip to content

Commit

Permalink
whisperv6: remove duplicated code (#18015)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreyLin authored and gballet committed Dec 3, 2018
1 parent a3fd415 commit 7a5c1b2
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions whisper/whisperv6/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,12 @@ package whisperv6

import (
"bytes"
"crypto/ecdsa"
"testing"
"time"

mapset "github.com/deckarep/golang-set"
"github.com/ethereum/go-ethereum/common"
)

func TestMultipleTopicCopyInNewMessageFilter(t *testing.T) {
w := &Whisper{
privateKeys: make(map[string]*ecdsa.PrivateKey),
symKeys: make(map[string][]byte),
envelopes: make(map[common.Hash]*Envelope),
expirations: make(map[uint32]mapset.Set),
peers: make(map[*Peer]struct{}),
messageQueue: make(chan *Envelope, messageQueueLimit),
p2pMsgQueue: make(chan *Envelope, messageQueueLimit),
quit: make(chan struct{}),
syncAllowance: DefaultSyncAllowance,
}
w.filters = NewFilters(w)
w := New(nil)

keyID, err := w.GenerateSymKey()
if err != nil {
Expand Down

0 comments on commit 7a5c1b2

Please sign in to comment.