소스 검색

clientv3/integration: add delay after restart in TestTxnWriteFail

CI was timing out with publish failures
Anthony Romano 10 년 전
부모
커밋
b7eb539b7a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      clientv3/integration/txn_test.go

+ 2 - 0
clientv3/integration/txn_test.go

@@ -52,6 +52,8 @@ func TestTxnWriteFail(t *testing.T) {
 	go func() {
 		// reconnect so terminate doesn't complain about double-close
 		clus.Members[0].Restart(t)
+		// wait for etcdserver to get established (CI races and get req times out)
+		time.Sleep(2 * time.Second)
 		donec <- struct{}{}
 
 		// and ensure the put didn't take