Make display confirmation test deterministic
This commit is contained in:
@@ -209,6 +209,8 @@ stale_json="$(jq '.[1].y = 250' "$monitor_state")"
|
||||
run ipc --pid "$harness_pid" call displays-test injectReadback "$stale_json" "$((generation - 1))" >/dev/null
|
||||
jq -e '.canConfirm == false' <<<"$(transaction_status)" >/dev/null \
|
||||
|| fail 'stale readback confirmed a newer operation'
|
||||
[[ "$(run ipc --pid "$harness_pid" call displays-test confirmChange)" == "false" ]] \
|
||||
|| fail 'Keep accepted a display change without a generation-matched readback'
|
||||
rm -f "$fixture/no-apply"
|
||||
run ipc --pid "$harness_pid" call displays-test expireApplyVerification >/dev/null
|
||||
wait_for '.busy == false and .awaiting == false' >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user