forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(exec): updates the
Multiplexed
opt to combine stdout and stderr
Updates the `Multiplexed` option to combine the output of stdout and stderr, changing the previous behavior where stderr was preferred over stdout. Now, both streams are properly combined into a single stream. Additionally, this commit enhance and adjust existing test cases for the `Multiplexed` option: * Modifies `TestExecWithMultiplexedResponse` to ensure that stdout and stderr are on the same stream, testing the new behavior of the `Multiplexed` option. * Refactors `TestExecWithNonMultiplexedResponse` to use `stdcopy.StdCopy` for ensuring that `io.Reader` contains a separated stdout and stderr.
- Loading branch information
1 parent
78e0e59
commit 9a11a36
Showing
2 changed files
with
18 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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