提交 562ccff8 编写于 作者: G gluk256 提交者: Jeffrey Wilcke

whisper: fixed temporary directory for tests (#3707)

上级 11539030
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册