Fix test for path errors.

pull/34/head
Ben Johnson 2014-07-10 09:41:40 -06:00
parent ca5f582710
commit 90fe8d9c12
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ var statsFlag = flag.Bool("stats", false, "show performance stats")
// Ensure that opening a database with a bad path returns an error.
func TestOpen_BadPath(t *testing.T) {
db, err := Open("/../bad-path", 0666, nil)
db, err := Open("", 0666, nil)
assert.Error(t, err)
assert.Nil(t, db)
}