mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
Increase terminal test yield timeout
Wait a little longer for "bell" signal to be emitted.
This commit is contained in:
parent
e8418ef593
commit
5fcc9b0595
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ func test_bell() -> void:
|
||||||
term.write("\a")
|
term.write("\a")
|
||||||
term.write("\u0007")
|
term.write("\u0007")
|
||||||
term.write("'Ask not for whom the \a tolls; it tolls for thee' - John Donne")
|
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)
|
assert_signal_emit_count(term, "bell", 5)
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ func test_bell_cooldown() -> void:
|
||||||
term.bell_cooldown = 0.5
|
term.bell_cooldown = 0.5
|
||||||
term.write("\a")
|
term.write("\a")
|
||||||
term.write("\a")
|
term.write("\a")
|
||||||
yield(yield_for(0.5), YIELD)
|
yield(yield_for(1), YIELD)
|
||||||
term.write("\a")
|
term.write("\a")
|
||||||
yield(yield_to(term, "bell", 1), YIELD)
|
yield(yield_to(term, "bell", 5), YIELD)
|
||||||
assert_signal_emit_count(term, "bell", 2)
|
assert_signal_emit_count(term, "bell", 2)
|
||||||
|
|
Loading…
Reference in a new issue