[Bug]: Random characters in the output of io.Reader
returned in Exec(ctx context.Context, cmd []string)
#620
Labels
bug
An issue with the library
Testcontainers version
0.15.0
Using the latest Testcontainers version?
Yes
Host OS
Macos
Host arch
x86
Go version
1.19
Docker version
Docker info
What happened?
The
io.Reader
returned by Exec() contains random characters. For my setup I am running arabbitmq:management
container and I am runningrabbitmqctl
command to list some connection information, like so,The output in the returned reader seems to contain random characters as such,
To rule out a formatter error on
rabbitmqctl
, I tried running the command with acsv
formatter, and I see the same behavior with random characters in the output of the reader. (Again there are no random characters when the same command is run in the docker container afterexec
ing into it viadocker exec -it <container_id> bash
The output looks clean when executed outside of
testcontainers-go
inside the container directly. I see in the source code that the tests forExec
don't seem to cover the reader returned from theExec
method.Any ideas why this is happening?
Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: