mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
whisper/mailserver: check err in mailserver init test
This commit is contained in:
parent
b928abcaa9
commit
cad827f6be
1 changed files with 4 additions and 1 deletions
|
|
@ -92,7 +92,10 @@ func TestMailServer(t *testing.T) {
|
|||
shh = whisper.New(&whisper.DefaultConfig)
|
||||
shh.RegisterServer(&server)
|
||||
|
||||
server.Init(shh, dir, password, powRequirement)
|
||||
err = server.Init(shh, dir, password, powRequirement)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer server.Close()
|
||||
|
||||
keyID, err = shh.AddSymKeyFromPassword(password)
|
||||
|
|
|
|||
Loading…
Reference in a new issue