Commit f492767
committed
test(mysql2): Harden tracing-channel healthcheck to fix flaky CI
The suite gated readiness on `mysqladmin ping`, which reports "alive"
even during MySQL 8's init bootstrap (it treats access-denied as alive).
So `docker compose up --wait` could return before the real server and
root password were ready, and the scenario's first connection was
dropped ("server closed the connection") — crashing the run and timing
out the test. Gate on an authenticated `SELECT 1` instead, mirroring the
knex/mysql2 sibling suite (#21868).1 parent 742dda3 commit f492767
1 file changed
Lines changed: 5 additions & 1 deletion
File tree
- dev-packages/node-integration-tests/suites/tracing/mysql2-tracing-channel
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
0 commit comments