1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 07:03:22 +00:00

Attempt to reduce test flakiness

I'm really not sure why the modem one fails. I can't reproduce outside
of CI, so quite hard to debug :/.
This commit is contained in:
Jonathan Coates 2023-01-07 15:05:21 +00:00
parent 717e096b94
commit 4360458416
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ fun Transmits_messages(context: GameTestHelper) = context.sequence {
*
* @see [#1278](https://github.com/cc-tweaked/CC-Tweaked/issues/1278)
*/
@GameTest
@GameTest(setupTicks = 1)
fun Full_modems_form_networks(helper: GameTestHelper) = helper.sequence {
thenExecute {
val modem1 = helper.getBlockEntity(BlockPos(1, 2, 1), ModRegistry.BlockEntities.WIRED_MODEM_FULL.get())

View File

@ -48,7 +48,7 @@ public void testSoftAbort() throws Exception {
assertFalse(timeout.isSoftAborted(), "Should not start soft-aborted");
var delay = ConcurrentHelpers.waitUntil(timeout::isSoftAborted);
assertThat("Should be soft aborted", delay * 1e-9, closeTo(7, 0.5));
assertThat("Should be soft aborted", delay * 1e-9, closeTo(7, 1.0));
LOG.info("Slept for {}", delay);
computer.shutdown();