Skip to content

Commit

Permalink
whisper: fixed temporary directory for tests (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
gluk256 authored and obscuren committed Feb 24, 2017
1 parent 1153903 commit 562ccff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whisper/mailserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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))
Expand Down

0 comments on commit 562ccff

Please sign in to comment.