From 6cf4c4b3fdfee4d85a48c9c1aaec793f267cf846 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Wed, 9 Mar 2016 09:44:16 -0800 Subject: [PATCH] backend: fix TestBackendClose by giving more time to wait for io --- storage/backend/backend_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/backend/backend_test.go b/storage/backend/backend_test.go index 623c6ca6a..0f2415781 100644 --- a/storage/backend/backend_test.go +++ b/storage/backend/backend_test.go @@ -39,8 +39,8 @@ func TestBackendClose(t *testing.T) { }() select { case <-done: - case <-time.After(time.Second): - t.Errorf("failed to close database in 1s") + case <-time.After(10 * time.Second): + t.Errorf("failed to close database in 10s") } }