(ctx context.Context, t *testing.T, c <-chan struct{}, msg string)
| 93 | } |
| 94 | |
| 95 | func 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 | |
| 105 | type testSession struct { |
| 106 | ctx testSSHContext |
no test coverage detected