### What is the issue? [TestSafeFuncHappyPath](https://github.com/tailscale/tailscale/blob/ef1e14250c40b28c68691f88dc1b6d1cc33425c0/util/expvarx/expvarx_test.go#L54) flaked: ``` ... === RUN TestSafeFuncHappyPath expvarx_test.go:62: got <nil>, want 1 --- FAIL: TestSafeFuncHappyPath (0.00s) FAIL FAIL tailscale.com/util/expvarx 0.019s ... ``` https://github.com/tailscale/tailscale/actions/runs/13926323640/job/38971700813?pr=15307
Activity
bradfitz commentedon May 7, 2025
Another https://github.com/tailscale/tailscale/actions/runs/14874863336/job/41770180033?pr=15891
alexwlchan commentedon Aug 19, 2025
And another here: https://github.com/tailscale/tailscale/actions/runs/17044850976/job/48328174776?pr=16895
util/expvar: fix flaky TestSafeFuncHappyPath test
util/expvar: fix flaky TestSafeFuncHappyPath test
util/expvar: fix flaky TestSafeFuncHappyPath test
alexwlchan commentedon Aug 20, 2025
Quick note for future readers: I found the stress utility really helpful for reproducing this issue locally. Here's the test script I used:
alexwlchan commentedon Sep 8, 2025
Another: https://github.com/tailscale/tailscale/actions/runs/17544837260/job/49823824189?pr=17051
utils/expvarx: mark TestSafeFuncHappyPath as known flaky
utils/expvarx: mark TestSafeFuncHappyPath as known flaky
utils/expvarx, tstest/integration: mark two tests as known flaky (#17052
util/expvarx: deflake TestSafeFuncHappyPath with synctest
util/expvarx: deflake TestSafeFuncHappyPath with synctest