1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-13 05:19:59 +00:00

Add workaround for inventory method test failure

This commit is contained in:
Jonathan Coates 2024-04-26 22:06:29 +01:00
parent b9a002586c
commit cd9840d1c1
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -78,6 +78,10 @@ class Inventory_Test {
*/
@GameTest
fun Double_chest_size(helper: GameTestHelper) = helper.sequence {
// FIXME: There's several ticks at the start of this test, where the chest sends block updates, which causes the
// peripheral to be (re)created. Wait for those to expire.
thenIdle(2)
thenOnComputer {
getApi<PeripheralAPI>().call(context, ObjectArguments("left", "size")).await()
.assertArrayEquals(54, message = "Has 54 slots")