Fix TestServeExecInContainerIdleTimeout flake

Remove creation of stream from TestServeExecInContainerIdleTimeout as
it's not necessary to very idle timeout.

Increase stream creation and ack timeouts to 30 seconds.

Fixes #5628
This commit is contained in:
Andy Goldstein
2015-04-09 15:42:36 -04:00
parent 2215a64567
commit 00e24603cb
3 changed files with 5 additions and 13 deletions

View File

@@ -655,15 +655,6 @@ func TestServeExecInContainerIdleTimeout(t *testing.T) {
if conn == nil {
t.Fatal("Unexpected nil connection")
}
defer conn.Close()
h := http.Header{}
h.Set(api.StreamType, api.StreamTypeError)
stream, err := conn.CreateStream(h)
if err != nil {
t.Fatalf("error creating input stream: %v", err)
}
defer stream.Reset()
<-conn.CloseChan()
}