mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 03:54:47 +03:00
5b34ae6309
The silent-node test returns after the one-second inline wait, while its delivery goroutine keeps the node's delivery lock until the push context times out three seconds later. The lock is keyed by node id, and every test's fresh database starts its nodes at id 1, so under -shuffle=on a test that ran next and expected a reset to arrive at once waited behind that lock and failed (go-test on #6966, run 45439392969; reproduced with -shuffle=1 on the two tests). The stalled runtime is now released when the test ends, and the cleanup waits for the delivery to let go of the lock.