Skip to content

Commit 0ec3c07

Browse files
authored
Fix Advanced Detector Cover Test (#3909)
1 parent 03df27e commit 0ec3c07

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/test/java/com/gregtechceu/gtceu/common/cover/AdvancedDetectorCoverTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,18 @@ public static void BLOCKED_BY_LDLIB_WEIRDNESS_TOO_PROBABLY_testAdvancedActivityD
5151
});
5252
}
5353

54-
@GameTest(template = "electrolyzer", batch = "coverTests", attempts = 10)
54+
@GameTest(template = "electrolyzer", batch = "coverTests")
5555
public static void testAdvancedFluidDetectorCover(GameTestHelper helper) {
5656
helper.pullLever(new BlockPos(2, 2, 2));
5757
MetaMachine machine = ((IMachineBlockEntity) helper.getBlockEntity(new BlockPos(1, 2, 1))).getMetaMachine();
5858
AdvancedFluidDetectorCover cover = (AdvancedFluidDetectorCover) TestUtils.placeCover(helper, machine,
5959
GTItems.COVER_FLUID_DETECTOR_ADVANCED.asStack(), Direction.WEST);
6060
cover.setMaxValue(100000);
6161
cover.setMinValue(1);
62-
cover.setLatched(true);
62+
cover.setLatched(false);
63+
// At t=40, 36k will be inside, giving a redstone value of 5
6364
helper.runAtTickTime(40, () -> {
64-
TestUtils.assertLampOff(helper, new BlockPos(0, 2, 1));
65+
TestUtils.assertLampOn(helper, new BlockPos(0, 2, 1));
6566
helper.succeed();
6667
});
6768
}

0 commit comments

Comments
 (0)