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
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ fun Fails_on_full(helper: GameTestHelper) = helper.sequence {
*/
@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")