Skip to content

Commit 56c6dde

Browse files
committed
Fix integration test related to content-type-based frame type detection
See docker-client/docker-remote-api-client#624
1 parent ac77c26 commit 56c6dde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration-test/src/test/groovy/de/gesellix/docker/client/DockerContainerIntegrationSpec.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,9 @@ class DockerContainerIntegrationSpec extends Specification {
941941
notThrown(Throwable)
942942
Thread.sleep(500)
943943
def matchingFrames = frames.findAll {
944-
it.streamType == Frame.StreamType.STDOUT
944+
// we receive a RAW response because the connection is not upgraded - which is ok for non-interactive usage
945+
// it.streamType == Frame.StreamType.STDOUT
946+
it.streamType == Frame.StreamType.RAW
945947
&& it.payloadAsString.contains("Listening and serving HTTP")
946948
}
947949
1 == matchingFrames?.size()

0 commit comments

Comments
 (0)