Skip to content

Commit

Permalink
[Java] Assert final position in EOS MDS test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Dec 12, 2023
1 parent f830b63 commit 329422e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class MdsEosPositionTest
final SystemTestWatcher testWatcher = new SystemTestWatcher();

@Test
@InterruptAfter(30)
@SlowTest
@InterruptAfter(30)
@Disabled
void shouldHaveEosAtFinalPosition()
{
Expand Down Expand Up @@ -94,6 +94,7 @@ void shouldHaveEosAtFinalPosition()
awaitClosed(image);

assertTrue(image.isEndOfStream());
assertEquals(expectedEosPosition, image.position());
assertEquals(expectedEosPosition, image.endOfStreamPosition());
}
}
Expand Down Expand Up @@ -127,15 +128,15 @@ private static void awaitActiveTransportCount(final Image image, final int activ
{
while (image.activeTransportCount() != activeTransportCount)
{
Tests.yield();
Tests.sleep(1);
}
}

private static void awaitClosed(final Image image)
{
while (!image.isClosed())
{
Tests.yield();
Tests.sleep(1);
}
}
}

0 comments on commit 329422e

Please sign in to comment.