Skip to content

Commit f122abe

Browse files
committed
fix: Add socat crlf option
1 parent 0863add commit f122abe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Testcontainers.Platform.Linux.Tests/TarOutputMemoryStreamTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public sealed class HttpFixture : IAsyncLifetime
178178
private readonly IContainer _container = new ContainerBuilder()
179179
.WithImage(CommonImages.Socat)
180180
.WithCommand("-v")
181-
.WithCommand($"TCP-LISTEN:{HttpPort},reuseaddr,fork")
181+
.WithCommand($"TCP-LISTEN:{HttpPort},crlf,reuseaddr,fork")
182182
.WithCommand("SYSTEM:'echo -e \"HTTP/1.1 200 OK\\nContent-Length: 0\\n\\n\"'")
183183
.WithPortBinding(HttpPort, true)
184184
.WithWaitStrategy(Wait.ForUnixContainer().UntilHttpRequestIsSucceeded(request => request))

tests/Testcontainers.Tests/Unit/Configurations/WaitUntilHttpRequestIsSucceededTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public sealed class HttpFixture : IAsyncLifetime
128128
public IContainer Container { get; } = new ContainerBuilder()
129129
.WithImage(CommonImages.Socat)
130130
.WithCommand("-v")
131-
.WithCommand($"TCP-LISTEN:{HttpPort},reuseaddr,fork")
131+
.WithCommand($"TCP-LISTEN:{HttpPort},crlf,reuseaddr,fork")
132132
.WithCommand("SYSTEM:'echo -e \"HTTP/1.1 200 OK\\nContent-Length: 0\\n\\n\"'")
133133
.WithPortBinding(HttpPort, true)
134134
.WithWaitStrategy(Wait.ForUnixContainer().UntilHttpRequestIsSucceeded(request => request))

0 commit comments

Comments
 (0)