MCPcopy Index your code
hub / github.com/tailscale/tailscale / TestExecQueueRunSyncLocking

Function TestExecQueueRunSyncLocking

util/execqueue/execqueue_test.go:26–31  ·  view source on GitHub ↗

Test that RunSync doesn't hold q.mu and block Shutdown as we saw in tailscale/tailscale#18502

(t *testing.T)

Source from the content-addressed store, hash-verified

24// Test that RunSync doesn't hold q.mu and block Shutdown
25// as we saw in tailscale/tailscale#18502
26func TestExecQueueRunSyncLocking(t *testing.T) {
27 q := &ExecQueue{}
28 q.RunSync(t.Context(), func() {
29 q.Shutdown()
30 })
31}

Callers

nothing calls this directly

Calls 3

RunSyncMethod · 0.95
ShutdownMethod · 0.95
ContextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…