diff options
author | Ivan Daniluk <ivan.daniluk@gmail.com> | 2018-05-04 17:10:18 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-04 17:10:18 +0800 |
commit | d2fe83dc5c0b32dfbe45e77817478e06f928ff8a (patch) | |
tree | 65674f324d9006655eafc0dcf4c8c22296fba086 /whisper/mailserver/server_test.go | |
parent | 16f3c31773c6daf57afe718719821a897fa1a2c7 (diff) | |
download | go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar.gz go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar.bz2 go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar.lz go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar.xz go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar.zst go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.zip |
whisper/mailserver: pass init error to the caller (#16671)
* whisper/mailserver: pass init error to the caller
* whisper/mailserver: add returns to fmt.Errorf
* whisper/mailserver: check err in mailserver init test
Diffstat (limited to 'whisper/mailserver/server_test.go')
-rw-r--r-- | whisper/mailserver/server_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/whisper/mailserver/server_test.go b/whisper/mailserver/server_test.go index d5b993afb..edb817cc7 100644 --- a/whisper/mailserver/server_test.go +++ b/whisper/mailserver/server_test.go @@ -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) |