mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-10 13:19:04 +00:00
whisper: fixed temporary directory for tests (#3707)
This commit is contained in:
parent
11539030cd
commit
562ccff822
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue