| tests/e2e/support/ticket04-stack.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
tests/e2e/support/ticket04-stack.ts
@@ -168,6 +168,15 @@ if (!this.docker) return this.dockerRun(['rm', '--force', this.mysqlContainer], true) this.dockerRun(['rm', '--force', this.redisContainer], true) // WSL 的端口转发可能晚于容器退出释放;确认本次端口已释放后才交给下一份验收。 await waitUntil(async () => { try { await Promise.all([mysqlPort, redisPort, apiPort, simulatorPort].map(assertPortAvailable)) return true } catch { return false } }, '本次隔离环境的端口未在清理后释放', 30_000) } private dockerRun(args: string[], allowFailure = false) {