We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb1bd29 commit d93f373Copy full SHA for d93f373
1 file changed
DockerizedTesting.RabbitMQ/RabbitMqFixture.cs
@@ -52,6 +52,7 @@ public ConnectionFactory SetupConnectionFactory(ConnectionFactory connectionFact
52
return connectionFactory;
53
}
54
55
+ private int success = 0;
56
protected override async Task<bool> IsContainerRunning(int[] ports)
57
{
58
try
@@ -68,10 +69,12 @@ protected override async Task<bool> IsContainerRunning(int[] ports)
68
69
70
71
- return await Task.FromResult(true);
72
+ this.success++;
73
+ return await Task.FromResult(this.success >= 5); // Rabbit seems to work then stop?
74
75
catch
76
77
+ this.success = 0;
78
return await Task.FromResult(false);
79
80
0 commit comments