Skip to content

Commit d93f373

Browse files
committed
re added check for failure when rabbit stops
1 parent cb1bd29 commit d93f373

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

DockerizedTesting.RabbitMQ/RabbitMqFixture.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public ConnectionFactory SetupConnectionFactory(ConnectionFactory connectionFact
5252
return connectionFactory;
5353
}
5454

55+
private int success = 0;
5556
protected override async Task<bool> IsContainerRunning(int[] ports)
5657
{
5758
try
@@ -68,10 +69,12 @@ protected override async Task<bool> IsContainerRunning(int[] ports)
6869

6970
}
7071
}
71-
return await Task.FromResult(true);
72+
this.success++;
73+
return await Task.FromResult(this.success >= 5); // Rabbit seems to work then stop?
7274
}
7375
catch
7476
{
77+
this.success = 0;
7578
return await Task.FromResult(false);
7679
}
7780
}

0 commit comments

Comments
 (0)