From f7efbe8b14211cc3d1892839eaf0e5861141a24e Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Wed, 16 Sep 2015 14:08:40 -0700 Subject: [PATCH] storage/backend: extend wait timeout for commit to finish It needs to take more time on travis. Fix: ``` --- FAIL: TestBackendBatchIntervalCommit (0.01s) backend_test.go:113: bucket test does not exit ``` --- storage/backend/backend_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storage/backend/backend_test.go b/storage/backend/backend_test.go index 4d3e1078e..96ed973a1 100644 --- a/storage/backend/backend_test.go +++ b/storage/backend/backend_test.go @@ -105,6 +105,8 @@ func TestBackendBatchIntervalCommit(t *testing.T) { // give time for batch interval commit to happen time.Sleep(time.Nanosecond) testutil.WaitSchedule() + // give time for commit to finish, including possible disk IO + time.Sleep(50 * time.Millisecond) // check whether put happens via db view b.db.View(func(tx *bolt.Tx) error {