FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Workaround the problem with attachContainerWithTTY test failure (#1492) by tejksat · Pull Request #1493 · docker-java/docker-java · GitHub

Repository navigation

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ public void onNext(Frame frame) {
.withFollowStream(true)
.exec(callback);

// The delay above is the workaround for #1492 issue for this test executed on Jersey or HttpClient5 transport implementations.
// Without the delay HTTP requests are sometimes performed in the reverse order ('start' and then 'attach').
// This results in the lost data from stdout and stderr streams of the container process and leads to the test failure.
Thread.sleep(5000L);

dockerClient.startContainerCmd(container.getId()).exec();

callback.awaitCompletion(15, TimeUnit.SECONDS);
Expand Down

Back | FazBrowse Home | New Git URL