From 4a24c762a921753c238b1ecfee72ed20c14282b9 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Thu, 2 Jun 2022 10:25:25 +0700 Subject: [PATCH] Increase terminal test yield timeout Wait a little longer for "bell" signal to be emitted. --- test/unit/terminal.test.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/terminal.test.gd b/test/unit/terminal.test.gd index 1496507..a0b0cf8 100644 --- a/test/unit/terminal.test.gd +++ b/test/unit/terminal.test.gd @@ -18,7 +18,7 @@ func test_bell() -> void: term.write("\a") term.write("\u0007") term.write("'Ask not for whom the \a tolls; it tolls for thee' - John Donne") - yield(yield_to(term, "bell", 1), YIELD) + yield(yield_to(term, "bell", 5), YIELD) assert_signal_emit_count(term, "bell", 5) @@ -27,7 +27,7 @@ func test_bell_cooldown() -> void: term.bell_cooldown = 0.5 term.write("\a") term.write("\a") - yield(yield_for(0.5), YIELD) + yield(yield_for(1), YIELD) term.write("\a") - yield(yield_to(term, "bell", 1), YIELD) + yield(yield_to(term, "bell", 5), YIELD) assert_signal_emit_count(term, "bell", 2)