diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-22 00:28:10 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-22 00:28:10 +0800 |
commit | af24c271c7a757f80968a4d50a65a416e2ac9cdd (patch) | |
tree | 08ccedc15371b5aa9f83c9035ddcb9193795d6a1 /p2p/discover | |
parent | f1cc3619f5bed55d803532f65f80b38fa760664b (diff) | |
download | dexon-af24c271c7a757f80968a4d50a65a416e2ac9cdd.tar dexon-af24c271c7a757f80968a4d50a65a416e2ac9cdd.tar.gz dexon-af24c271c7a757f80968a4d50a65a416e2ac9cdd.tar.bz2 dexon-af24c271c7a757f80968a4d50a65a416e2ac9cdd.tar.lz dexon-af24c271c7a757f80968a4d50a65a416e2ac9cdd.tar.xz dexon-af24c271c7a757f80968a4d50a65a416e2ac9cdd.tar.zst dexon-af24c271c7a757f80968a4d50a65a416e2ac9cdd.zip |
p2p/discover: fix database presistency test folder
Diffstat (limited to 'p2p/discover')
-rw-r--r-- | p2p/discover/database_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/p2p/discover/database_test.go b/p2p/discover/database_test.go index 3ed84a099..9c543cd5f 100644 --- a/p2p/discover/database_test.go +++ b/p2p/discover/database_test.go @@ -243,7 +243,7 @@ func TestNodeDBPersistency(t *testing.T) { ) // Create a persistent database and store some values - db, err := newNodeDB(filepath.Join("root", "database"), Version) + db, err := newNodeDB(filepath.Join(root, "database"), Version) if err != nil { t.Fatalf("failed to create persistent database: %v", err) } @@ -253,7 +253,7 @@ func TestNodeDBPersistency(t *testing.T) { db.close() // Reopen the database and check the value - db, err = newNodeDB(filepath.Join("root", "database"), Version) + db, err = newNodeDB(filepath.Join(root, "database"), Version) if err != nil { t.Fatalf("failed to open persistent database: %v", err) } @@ -263,7 +263,7 @@ func TestNodeDBPersistency(t *testing.T) { db.close() // Change the database version and check flush - db, err = newNodeDB(filepath.Join("root", "database"), Version+1) + db, err = newNodeDB(filepath.Join(root, "database"), Version+1) if err != nil { t.Fatalf("failed to open persistent database: %v", err) } |