1
0
mirror of https://github.com/moby/moby.git synced 2025-08-07 02:02:57 +03:00

Make it explicit raw|multiplexed stream implementation being used

fix #35761

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof
2019-08-28 13:46:32 +02:00
parent 7c69b6dc08
commit af5d83a641
14 changed files with 151 additions and 28 deletions

View File

@@ -193,6 +193,9 @@ func (s *DockerSuite) TestPostContainersAttach(c *testing.T) {
resp, err := client.ContainerAttach(context.Background(), cid, attachOpts)
assert.NilError(c, err)
mediaType, b := resp.MediaType()
assert.Check(c, b)
assert.Equal(c, mediaType, types.MediaTypeMultiplexedStream)
expectSuccess(resp.Conn, resp.Reader, "stdout", false)
// Make sure we do see "hello" if Logs is true