Skip to content

Commit

Permalink
fix: test call
Browse files Browse the repository at this point in the history
  • Loading branch information
derkork committed Jun 1, 2024
1 parent a0a2e3a commit 6610aad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Project
run: timeout 25s godot -e --headless || true
run: timeout 10s godot -e --headless || true
- name: Run tests
run: godot -e --headless --path "$PWD" -s addons/gut/gut_cmdln.gd -gdir=res://tests/ -gprefix=test_ -gsuffix=.gd -gexit -ginclude_subdirs
run: godot --headless --path "$PWD" -s addons/gut/gut_cmdln.gd -gdir=res://tests/ -gprefix=test_ -gsuffix=.gd -gexit -ginclude_subdirs
3 changes: 3 additions & 0 deletions tests/framework/state_chart_test_base.gd
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,21 @@ func state_is_active_guard(state: StateChartState) -> StateIsActiveGuard:


func all_of_guard(guard:Array[Guard]) -> AllOfGuard:
@warning_ignore("shadowed_variable")
var all_of_guard: AllOfGuard = AllOfGuard.new()
all_of_guard.guards = guard
return all_of_guard


func any_of_guard(guard:Array[Guard]) -> AnyOfGuard:
@warning_ignore("shadowed_variable")
var any_of_guard: AnyOfGuard = AnyOfGuard.new()
any_of_guard.guards = guard
return any_of_guard


func not_guard(guard:Guard) -> NotGuard:
@warning_ignore("shadowed_variable")
var not_guard: NotGuard = NotGuard.new()
not_guard.guard = guard
return not_guard
2 changes: 2 additions & 0 deletions tests/test_infinite_loop_detection.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ func test_infinite_loop_detection():

await finish_setup()

pass_test("No infinite loop. Nice.")


0 comments on commit 6610aad

Please sign in to comment.