From fc8158664c5f2e0fc4f07773694e4bcfc13bc759 Mon Sep 17 00:00:00 2001 From: bitbrain Date: Sat, 2 Dec 2023 13:25:43 +0000 Subject: [PATCH] fix time limiter test. physics_process ticks uncontrollably --- test/nodes/decorators/time_limiter_test.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/nodes/decorators/time_limiter_test.gd b/test/nodes/decorators/time_limiter_test.gd index 04a06eb0..847f895d 100644 --- a/test/nodes/decorators/time_limiter_test.gd +++ b/test/nodes/decorators/time_limiter_test.gd @@ -35,11 +35,11 @@ func before_test() -> void: func test_return_failure_when_child_exceeds_time_limiter() -> void: - time_limiter.wait_time = 0.1 + time_limiter.wait_time = 1.0 action.status = BeehaveNode.RUNNING - await runner.simulate_frames(1, 10) + await runner.simulate_frames(1) assert_that(tree.tick()).is_equal(BeehaveNode.RUNNING) - await runner.simulate_frames(5, 100) + await runner.simulate_frames(1, 1500) assert_that(tree.tick()).is_equal(BeehaveNode.FAILURE)