Browse code

Fix flaky TestGetContainersAttachWebsocket

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>

Tonis Tiigi authored on 2016/04/01 03:31:48
Showing 1 changed files
... ...
@@ -36,7 +36,7 @@ func (s *DockerSuite) TestGetContainersAttachWebsocket(c *check.C) {
36 36
 
37 37
 	outChan := make(chan error)
38 38
 	go func() {
39
-		_, err := ws.Read(actual)
39
+		_, err := io.ReadFull(ws, actual)
40 40
 		outChan <- err
41 41
 		close(outChan)
42 42
 	}()