diff --git a/specmatic-order-bff-csharp.test/contract/ContractTests.cs b/specmatic-order-bff-csharp.test/contract/ContractTests.cs index 308e654..482ef2f 100644 --- a/specmatic-order-bff-csharp.test/contract/ContractTests.cs +++ b/specmatic-order-bff-csharp.test/contract/ContractTests.cs @@ -38,17 +38,12 @@ private async Task RunContractTests() { var localReportDirectory = Path.Combine(Pwd, "reports"); Directory.CreateDirectory(localReportDirectory); - - var hostIp = Environment.GetEnvironmentVariable("HOST_IP") ?? "host-gateway"; - Console.WriteLine($"HostIp: {hostIp}"); _testContainer = new ContainerBuilder() .WithImage("znsio/specmatic").WithCommand("test") .WithCommand("--port=8080") - .WithCommand("--host=host.docker.internal") - .WithExtraHost("host.docker.internal", hostIp) + .WithCommand("--host=host.testcontainers.internal") .WithOutputConsumer(Consume.RedirectStdoutAndStderrToConsole()) - .WithNetwork(new NetworkBuilder().WithName("test").Build()) .WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("Tests run:")) .WithBindMount(localReportDirectory, $"{TestContainerDirectory}/build/reports") .WithBindMount(