Browse Source

backend: fix TestBackendClose by giving more time to wait for io

Xiang Li 9 years ago
parent
commit
6cf4c4b3fd
1 changed files with 2 additions and 2 deletions
  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 {
 	select {
 	case <-done:
 	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")
 	}
 	}
 }
 }