瀏覽代碼

Merge pull request #4731 from xiang90/backend

backend: fix TestBackendClose by giving more time to wait for io
Xiang Li 9 年之前
父節點
當前提交
73c8dbd459
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      storage/backend/backend_test.go

+ 2 - 2
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")
 	}
 }