فهرست منبع

storage: extend timeout to wait for put complete

travis is sometimes slow, and it could fail to complete the put in 10ms.
Yicheng Qin 11 سال پیش
والد
کامیت
a21166c3aa
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)
 		}
 	}