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 years ago
parent
commit
a21166c3aa
1 changed files with 1 additions and 1 deletions
  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)
 		s.TxnEnd(id)
 		select {
 		select {
 		case <-done:
 		case <-done:
-		case <-time.After(10 * time.Millisecond):
+		case <-time.After(100 * time.Millisecond):
 			t.Fatalf("#%d: operation failed to be unblocked", i)
 			t.Fatalf("#%d: operation failed to be unblocked", i)
 		}
 		}
 	}
 	}