mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-25 19:36:07 +00:00
#924 buffered the channel Remove returns, so the goroutine it starts can finish when the caller has already timed out and walked away. That half of the patch was not covered: reverting the buffer on its own left the whole suite green, while the timeout assertion it shipped with stayed red only for the error-return half. This test abandons twenty channels and then requires every goroutine to be gone. It waits for the scheduler to empty first, so a goroutine that has not yet reached its send cannot make the test pass while proving nothing. Without the buffer: 20 of 20 parked on `chan send` at jobbase.go:216.