(t *testing.T, n int)
| 103 | } |
| 104 | |
| 105 | func (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 | |
| 115 | func Test_ACPAgentIO_WriteAndReadScreen(t *testing.T) { |
| 116 | collector := newChunkCollector() |
no test coverage detected