Skip to content

Commit

Permalink
tweak test timings
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbrain committed Nov 16, 2023
1 parent b8e0763 commit b8438cd
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,7 +35,7 @@ func before_test() -> void:


func test_return_failure_when_child_exceeds_time_limiter() -> void:
time_limiter.wait_time = 0.3
time_limiter.wait_time = 0.1
action.status = BeehaveNode.RUNNING
await runner.simulate_frames(1, 10)
assert_that(tree.tick()).is_equal(BeehaveNode.RUNNING)
Expand All @@ -44,7 +44,7 @@ func test_return_failure_when_child_exceeds_time_limiter() -> void:


func test_reset_when_child_finishes() -> void:
time_limiter.wait_time = 1.0
time_limiter.wait_time = 0.5
action.status = BeehaveNode.RUNNING
await runner.simulate_frames(1, 10)
assert_that(tree.tick()).is_equal(BeehaveNode.RUNNING)
Expand All @@ -54,7 +54,7 @@ func test_reset_when_child_finishes() -> void:


func test_clear_running_child_after_run() -> void:
time_limiter.wait_time = 1.0
time_limiter.wait_time = 0.2
action.status = BeehaveNode.RUNNING
await runner.simulate_frames(1)
assert_that(time_limiter.running_child).is_equal(action)
Expand Down

0 comments on commit b8438cd

Please sign in to comment.