Skip to content

Commit

Permalink
fix time limiter test. physics_process ticks uncontrollably
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbrain committed Dec 2, 2023
1 parent d71c619 commit fc81586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/nodes/decorators/time_limiter_test.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit fc81586

Please sign in to comment.