Skip to content

Commit

Permalink
chore: increment timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Eberl committed Jun 22, 2021
1 parent 4565d2b commit 52bf3cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
class LiveServiceApplicationIT extends StompClientIntegrationTest {

private static final String SUBSCRIPTION_ENDPOINT = "/user/events";
private static final int MESSAGE_TIMEOUT = 7;
private static final int MESSAGE_TIMEOUT = 10;

@Autowired
private SocketUserRegistry socketUserRegistry;
Expand Down Expand Up @@ -250,7 +250,7 @@ void sendLiveEvent_Should_sendDirectMessageMultipleTimesToUserAndFinalyRemove_Wh
assertThat(resultMessage, notNullValue());
assertThat(resultMessage.getEventType(), is(DIRECTMESSAGE));
for (int i = 0; i < 5; i++) {
var furtherMessage = receivedMessages.poll(100, SECONDS);
var furtherMessage = receivedMessages.poll(MESSAGE_TIMEOUT * 10, SECONDS);
assertThat(furtherMessage, notNullValue());
assertThat(furtherMessage.getEventType(), is(DIRECTMESSAGE));
}
Expand Down

0 comments on commit 52bf3cb

Please sign in to comment.