NEO-85: gdformat position authority client test signal asserts.
Pre-push gdformat --check failed on long await assert_signal lines.pull/120/head
parent
9c8e8c2109
commit
2316303ad7
|
|
@ -65,7 +65,9 @@ func test_sync_boot_get_200_emits_snap() -> void:
|
||||||
# Act
|
# Act
|
||||||
c.sync_from_server()
|
c.sync_from_server()
|
||||||
# Assert
|
# Assert
|
||||||
await assert_signal(c).is_emitted("authoritative_position_received", Vector3(1.0, 0.9, -5.0), true)
|
await assert_signal(c).is_emitted(
|
||||||
|
"authoritative_position_received", Vector3(1.0, 0.9, -5.0), true
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# NEO-24: boot sync also emits the cooldown-throttled heartbeat.
|
# NEO-24: boot sync also emits the cooldown-throttled heartbeat.
|
||||||
|
|
@ -104,7 +106,9 @@ func test_move_stream_post_400_emits_move_rejected_then_boot_get() -> void:
|
||||||
c.submit_stream_targets([Vector3(1.0, 2.0, 3.0)])
|
c.submit_stream_targets([Vector3(1.0, 2.0, 3.0)])
|
||||||
# Assert
|
# Assert
|
||||||
await assert_signal(c).is_emitted("move_rejected", "vertical_step_exceeded")
|
await assert_signal(c).is_emitted("move_rejected", "vertical_step_exceeded")
|
||||||
await assert_signal(c).is_emitted("authoritative_position_received", Vector3(0.0, 0.9, 0.0), true)
|
await assert_signal(c).is_emitted(
|
||||||
|
"authoritative_position_received", Vector3(0.0, 0.9, 0.0), true
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
func test_move_stream_post_400_without_reason_emits_unknown() -> void:
|
func test_move_stream_post_400_without_reason_emits_unknown() -> void:
|
||||||
|
|
@ -118,7 +122,9 @@ func test_move_stream_post_400_without_reason_emits_unknown() -> void:
|
||||||
c.submit_stream_targets([Vector3.ZERO])
|
c.submit_stream_targets([Vector3.ZERO])
|
||||||
# Assert
|
# Assert
|
||||||
await assert_signal(c).is_emitted("move_rejected", "unknown")
|
await assert_signal(c).is_emitted("move_rejected", "unknown")
|
||||||
await assert_signal(c).is_emitted("authoritative_position_received", Vector3(1.0, 0.9, 1.0), true)
|
await assert_signal(c).is_emitted(
|
||||||
|
"authoritative_position_received", Vector3(1.0, 0.9, 1.0), true
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
func test_second_sync_while_busy_is_ignored() -> void:
|
func test_second_sync_while_busy_is_ignored() -> void:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue