MCPcopy Create free account
hub / github.com/coder/agentapi / waitForN

Method waitForN

x/acpio/acpio_test.go:105–113  ·  view source on GitHub ↗
(t *testing.T, n int)

Source from the content-addressed store, hash-verified

103}
104
105func (c *chunkCollector) waitForN(t *testing.T, n int) []string {
106 t.Helper()
107 c.mu.Lock()
108 defer c.mu.Unlock()
109 for len(c.chunks) < n {
110 c.cond.Wait()
111 }
112 return append([]string(nil), c.chunks...)
113}
114
115func Test_ACPAgentIO_WriteAndReadScreen(t *testing.T) {
116 collector := newChunkCollector()

Calls 1

WaitMethod · 0.80

Tested by

no test coverage detected