aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/mailserver/server_test.go
diff options
context:
space:
mode:
authorgluk256 <gluk256@users.noreply.github.com>2017-02-24 16:21:01 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2017-02-24 16:21:01 +0800
commit562ccff8229678a988533d725e6f3c608729b4f9 (patch)
treeb3b5454ff6017ba1ea859f41fe36b2ea70aeda03 /whisper/mailserver/server_test.go
parent11539030cdf91f5a74bf205e8f52f9f08aace8e3 (diff)
downloaddexon-562ccff8229678a988533d725e6f3c608729b4f9.tar
dexon-562ccff8229678a988533d725e6f3c608729b4f9.tar.gz
dexon-562ccff8229678a988533d725e6f3c608729b4f9.tar.bz2
dexon-562ccff8229678a988533d725e6f3c608729b4f9.tar.lz
dexon-562ccff8229678a988533d725e6f3c608729b4f9.tar.xz
dexon-562ccff8229678a988533d725e6f3c608729b4f9.tar.zst
dexon-562ccff8229678a988533d725e6f3c608729b4f9.zip
whisper: fixed temporary directory for tests (#3707)
Diffstat (limited to 'whisper/mailserver/server_test.go')
-rw-r--r--whisper/mailserver/server_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/mailserver/server_test.go b/whisper/mailserver/server_test.go
index 02b30ff5e..8b58a826f 100644
--- a/whisper/mailserver/server_test.go
+++ b/whisper/mailserver/server_test.go
@@ -78,7 +78,7 @@ func TestMailServer(t *testing.T) {
const password = "password_for_this_test"
const dbPath = "whisper-server-test"
- _, err := ioutil.TempDir("", dbPath)
+ dir, err := ioutil.TempDir("", dbPath)
if err != nil {
t.Fatal(err)
}
@@ -87,7 +87,7 @@ func TestMailServer(t *testing.T) {
shh = whisper.New()
shh.RegisterServer(&server)
- server.Init(shh, dbPath, password, powRequirement)
+ server.Init(shh, dir, password, powRequirement)
defer server.Close()
err = shh.AddSymKey(keyName, []byte(password))