This commit is contained in:
Clebert Suconic 2020-03-17 14:01:07 -04:00
commit 176c3e1a00
1 changed files with 3 additions and 1 deletions

View File

@ -235,13 +235,15 @@ public class GeneralInteropTest extends BasicOpenWireTest {
}
}
Wait.assertEquals(0, queueControl::getDeliveringCount);
message = consumer.receive(5000);
assertNotNull(message);
assertTrue(message instanceof TextMessage);
assertEquals(text + 1, ((TextMessage)message).getText());
message.acknowledge();
Wait.assertEquals(2L, () -> queueControl.getMessagesAcknowledged(), 3000, 100);
Wait.assertEquals(1L, () -> queueControl.getMessagesAcknowledged(), 3000, 100);
Wait.assertEquals(prefetchSize, () -> queueControl.getDeliveringCount(), 30000, 100);
} finally {
connection.close();