Skip to content

Commit

Permalink
tests: Fix Dream Fragment signal being fired later
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Aug 24, 2022
1 parent b85d2aa commit 8e8098b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gut_editor_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"hide_orphans": false,
"ignore_pause": true,
"include_subdirs": false,
"inner_class": "TestBossRandomDiscount",
"inner_class": "TestDreamFragment",
"junit_xml_file": "",
"junit_xml_timestamp": false,
"log_level": 3,
"opacity": 68,
"post_run_script": "",
"pre_run_script": "",
"prefix": "test_",
"selected": "test_ordeal_artifacts.gd",
"selected": "test_perturbations.gd",
"should_exit": false,
"should_exit_on_success": false,
"should_maximize": true,
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/cards/test_perturbations.gd
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class TestDreamFragment:
if sceng is GDScriptFunctionState:
sceng = yield(sceng, "completed")
# yield(yield_to(cfc, "new_card_instanced", 0.2), YIELD)
assert_signal_emitted(scripting_bus, "card_removed")
assert_signal_emitted(cfc, "new_card_instanced")
assert_eq(dreamer.damage, 1, "Perturbation did damage")
# We're saving as vars here because the original card will be queue cleared
Expand All @@ -100,7 +99,7 @@ class TestDreamFragment:
"Card removed but new one took its place")
assert_eq(hand.get_card_count(), 1 + draw_amount,
"%s drew correct amount of cards" % [testing_card_name])
gut.p(hand.get_card_count())
assert_signal_emitted(scripting_bus, "card_removed")


class TestDistracted:
Expand Down

0 comments on commit 8e8098b

Please sign in to comment.