From 00ee0da5289dd5aaf9263ee39c8082ff3a9557c7 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sat, 21 Jun 2014 14:44:22 -0600 Subject: Add Open() options, flock timeout. This commit changes Open() to provide an additional Options argument. The options argument currently only has a Timeout which will cause the Open() to return ErrTimeout if a file lock cannot be obtained in time. Fixes #207. --- cmd/bolt/import_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/bolt/import_test.go') diff --git a/cmd/bolt/import_test.go b/cmd/bolt/import_test.go index 263f561..3d4f275 100644 --- a/cmd/bolt/import_test.go +++ b/cmd/bolt/import_test.go @@ -23,7 +23,7 @@ func TestImport(t *testing.T) { assert.Equal(t, ``, output) // Open database and verify contents. - db, err := bolt.Open(path, 0600) + db, err := bolt.Open(path, 0600, nil) assert.NoError(t, err) db.View(func(tx *bolt.Tx) error { assert.NotNil(t, tx.Bucket([]byte("empty"))) -- cgit v1.2.3