server 包的后台 worker 会在测试结束后继续写 t.TempDir(),清理时报 "TempDir RemoveAll cleanup: directory not empty"(单测单独跑则通过)。 根因是 Manager.Close() 只关数据库、不等 task goroutine 退出,属既有问题。 真实失败两次都会失败,不会被重试掩盖。
server 包的后台 worker 会在测试结束后继续写 t.TempDir(),清理时报 "TempDir RemoveAll cleanup: directory not empty"(单测单独跑则通过)。 根因是 Manager.Close() 只关数据库、不等 task goroutine 退出,属既有问题。 真实失败两次都会失败,不会被重试掩盖。