cleaner tests i thought
This commit is contained in:
@@ -364,8 +364,7 @@ func tempBoltDB(t *testing.T) (*BoltDB, func()) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
f.Close()
|
||||
os.Args = []string{"a", "-dburi", f.Name()}
|
||||
bdb := NewBoltDB()
|
||||
bdb := NewBoltDB(f.Name())
|
||||
fillBoltDB(t, bdb)
|
||||
return bdb, func() {
|
||||
bdb.db.Close()
|
||||
|
||||
Reference in New Issue
Block a user