MCPcopy Index your code
hub / github.com/coder/coder / requireNeverConfigures

Function requireNeverConfigures

tailnet/configmaps_internal_test.go:1275–1290  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, uut *phased)

Source from the content-addressed store, hash-verified

1273}
1274
1275func 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
1292type reconfigCall struct {
1293 wg *wgcfg.Config

Calls 6

TryReceiveFunction · 0.92
HelperMethod · 0.65
WaitMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected