MCPcopy Create free account
hub / github.com/coder/coder / waitForChan

Function waitForChan

agent/agentssh/agentssh_internal_test.go:95–103  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, c <-chan struct{}, msg string)

Source from the content-addressed store, hash-verified

93}
94
95func waitForChan(ctx context.Context, t *testing.T, c <-chan struct{}, msg string) {
96 t.Helper()
97 select {
98 case <-c:
99 // OK!
100 case <-ctx.Done():
101 t.Fatal(msg)
102 }
103}
104
105type testSession struct {
106 ctx testSSHContext

Callers 1

Test_sessionStart_orphanFunction · 0.85

Calls 3

FatalMethod · 0.80
HelperMethod · 0.65
DoneMethod · 0.45

Tested by

no test coverage detected