# fix\(server\): use waitForPush in terminal event broadcast test to prevent flaky failure \(\#606\) · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/3738373aa5ff0fff074ecb95686ef952c209957e)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 3738373aa5ff0fff074ecb95686ef952c209957e

Requested commit: 3738373aa5ff0fff074ecb95686ef952c209957e

Commit: 3738373aa5ff0fff074ecb95686ef952c209957e

Tree: 1d655b2f7fe623456617e8f562d1ef6004b94280

Author: 0x1f99d

Committer: GitHub

## Message

```
fix(server): use waitForPush in terminal event broadcast test to prevent flaky failure (#606)

The terminal RPC test used raw waitForMessage to receive the expected
terminal.event push, but a server.configUpdated push from the
keybindings file watcher can arrive first depending on OS timing.
Replace with the existing waitForPush helper that filters by channel.
```

## Parents

- [9b9006fed571dbeb1c810493500a679a49a2ba38](https://git.cafe/screen/t3code-personal/commit/9b9006fed571dbeb1c810493500a679a49a2ba38?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/3738373aa5ff0fff074ecb95686ef952c209957e?format=markdown)
