Skip to content

Commit

Permalink
Ensure enough ports are published for toxiproxy container
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Mar 23, 2024
1 parent 981c6bc commit 8a1eb6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .ci/ubuntu/gha-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function start_toxiproxy
--name "$toxiproxy_docker_name" \
--hostname "$toxiproxy_docker_name" \
--publish 8474:8474 \
--publish 55672:55672 \
--publish 55670-55680:55670-55680 \
--network "$docker_network_name" \
'ghcr.io/shopify/toxiproxy:2.7.0'
fi
Expand Down
5 changes: 2 additions & 3 deletions projects/Test/Common/ProcessUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using RabbitMQ.Client;

namespace Test
{
Expand Down Expand Up @@ -176,7 +175,7 @@ public static async Task<Result> RunAsync(ProcessStartInfo startInfo)
}
else
{
Console.WriteLine("[WARNING] caught exception and re-trying: {0}", ex);
Console.WriteLine("[WARNING] caught exception and re-trying ({0}): {1}", attempts, ex);
}
}
catch (TimeoutException ex)
Expand All @@ -188,7 +187,7 @@ public static async Task<Result> RunAsync(ProcessStartInfo startInfo)
}
else
{
Console.WriteLine("[WARNING] caught exception and re-trying: {0}", ex);
Console.WriteLine("[WARNING] caught exception and re-trying ({0}): {1}", attempts, ex);
}
}

Expand Down
4 changes: 2 additions & 2 deletions projects/Test/Integration/TestToxiproxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public ProxyManager(string testName, bool isRunningInCI, bool isWindows)
}
}

Proxy p = _proxyClient.AddAsync(_proxy).GetAwaiter().GetResult();
Assert.True(p.Enabled);
_proxy = _proxyClient.AddAsync(_proxy).GetAwaiter().GetResult();
Assert.True(_proxy.Enabled);
}

public int ProxyPort => _proxyPort;
Expand Down

0 comments on commit 8a1eb6b

Please sign in to comment.