ARTEMIS-4248 Fixing PagingTest::testSimpleResume
testSimpleResume is intermittently failing. This test is forcing another page, while cleanup is happening on the background. ForceAnotherPage may not put the address back into paging if this happened right after the cleanup call. To fix the test, we should call startPaging after forceAnotherPage is called.
This commit is contained in:
parent
2a81a0a3c6
commit
9bac93e25e
|
@ -1192,6 +1192,9 @@ public class PagingTest extends ActiveMQTestBase {
|
|||
for (int i = 0; i < numberOfMessages; i++) {
|
||||
if (i % 10 == 0 && i > 0) {
|
||||
queue.getPagingStore().forceAnotherPage();
|
||||
// forceAnotherPage could be called concurrently with cleanup on this case
|
||||
// so we have to call startPaging to make sure we are still paging on this test
|
||||
queue.getPagingStore().startPaging();
|
||||
page++;
|
||||
}
|
||||
message = session.createMessage(true);
|
||||
|
|
Loading…
Reference in New Issue