# test\(server\): ban real-clock waits in tests · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/67677844862345f14615d1656e6ebd9f06a0671b)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 67677844862345f14615d1656e6ebd9f06a0671b

Requested commit: 67677844862345f14615d1656e6ebd9f06a0671b

Commit: 67677844862345f14615d1656e6ebd9f06a0671b

Tree: 5e3cc5700ac2fd23d7a70d191316eda8bb0842e6

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
test(server): ban real-clock waits in tests

Add the t3code/no-real-time-wait-in-tests lint rule. It reports
Effect.sleep/Effect.delay/Schedule waits on the real clock, it.effect
sleeps in files that never drive the TestClock, and promise-wrapped or
timers/promises timers. Replace the existing waits with awaited
milestones, event-stream projection waits, worker drains, and TestClock
adjustments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [595c60457c6bdfc4569d7212072c70f8fe9e4fe9](https://git.cafe/pingdotgg/t3code/commit/595c60457c6bdfc4569d7212072c70f8fe9e4fe9?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/67677844862345f14615d1656e6ebd9f06a0671b?format=markdown)
