Browse Source

clientv3/integration: add delay after restart in TestTxnWriteFail

CI was timing out with publish failures
Anthony Romano 10 years ago
parent
commit
b7eb539b7a
1 changed files with 2 additions and 0 deletions
  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