Increase terminal test yield timeout

Wait a little longer for "bell" signal to be emitted.
This commit is contained in:
Leroy Hopson 2022-06-02 10:25:25 +07:00
parent e8418ef593
commit 5fcc9b0595
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -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)