(ctx context.Context, t *testing.T, uut *phased)
| 1273 | } |
| 1274 | |
| 1275 | func requireNeverConfigures(ctx context.Context, t *testing.T, uut *phased) { |
| 1276 | t.Helper() |
| 1277 | waiting := make(chan struct{}) |
| 1278 | go func() { |
| 1279 | t.Helper() |
| 1280 | // ensure that we never configure, and go straight to closed |
| 1281 | uut.L.Lock() |
| 1282 | defer uut.L.Unlock() |
| 1283 | close(waiting) |
| 1284 | for uut.phase == idle { |
| 1285 | uut.Wait() |
| 1286 | } |
| 1287 | assert.Equal(t, closed, uut.phase) |
| 1288 | }() |
| 1289 | _ = testutil.TryReceive(ctx, t, waiting) |
| 1290 | } |
| 1291 | |
| 1292 | type reconfigCall struct { |
| 1293 | wg *wgcfg.Config |
no test coverage detected