MCPcopy Index your code
hub / github.com/coder/coder / WaitUntilIdleForTest

Function WaitUntilIdleForTest

coderd/x/chatd/testhooks.go:7–9  ·  view source on GitHub ↗

WaitUntilIdleForTest waits for background chat work tracked by the server to finish without shutting the server down. Tests use this to assert final database state only after asynchronous chat processing has completed. Close waits for the same tracked work, but also stops the server.

(server *Server)

Source from the content-addressed store, hash-verified

5// database state only after asynchronous chat processing has completed.
6// Close waits for the same tracked work, but also stops the server.
7func WaitUntilIdleForTest(server *Server) {
8 server.drainInflight()
9}

Calls 1

drainInflightMethod · 0.80