TCP: Fix Event Tests Race Condition - take 2

This commit is contained in:
Gary Russell
2015-08-14 13:20:28 -04:00
parent d5dcb419c3
commit 1043ffabcb

View File

@@ -136,7 +136,7 @@ public class ConnectionFactoryTests {
FooEvent event = new FooEvent(client, "foo");
client.publishEvent(event);
assertEquals(expected + 1, events.size());
assertThat(events.size(), greaterThanOrEqualTo(expected + 1));
try {
event = new FooEvent(mock(TcpConnectionSupport.class), "foo");