mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-30 21:23:00 +00:00 
			
		
		
		
	Add workaround for inventory method test failure
This commit is contained in:
		| @@ -78,6 +78,10 @@ class Inventory_Test { | |||||||
|      */ |      */ | ||||||
|     @GameTest |     @GameTest | ||||||
|     fun Double_chest_size(helper: GameTestHelper) = helper.sequence { |     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 { |         thenOnComputer { | ||||||
|             getApi<PeripheralAPI>().call(context, ObjectArguments("left", "size")).await() |             getApi<PeripheralAPI>().call(context, ObjectArguments("left", "size")).await() | ||||||
|                 .assertArrayEquals(54, message = "Has 54 slots") |                 .assertArrayEquals(54, message = "Has 54 slots") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates