延长MySQL隔离实例正常关闭等待时间

This commit is contained in:
xuans 2026-10-01 23:30:25 +08:00
parent e5e97537b7
commit a139e6bd98

View File

@ -186,7 +186,7 @@ func (f *Server) Stop(t *testing.T) {
if err != nil {
t.Errorf("独立 MySQL 未正常退出:%v", err)
}
case <-time.After(15 * time.Second):
case <-time.After(30 * time.Second):
_ = f.command.Process.Kill()
<-f.exit
t.Error("独立 MySQL 停止超时,已终止本测试启动的进程")