Browse Source

storage: extend timeout to wait for put complete

travis is sometimes slow, and it could fail to complete the put in 10ms.
Yicheng Qin 10 năm trước cách đây
mục cha
commit
a21166c3aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      storage/kv_test.go

+ 1 - 1
storage/kv_test.go

@@ -430,7 +430,7 @@ func TestKVTxnBlockNonTnxOperations(t *testing.T) {
 		s.TxnEnd(id)
 		select {
 		case <-done:
-		case <-time.After(10 * time.Millisecond):
+		case <-time.After(100 * time.Millisecond):
 			t.Fatalf("#%d: operation failed to be unblocked", i)
 		}
 	}