Commit 97cfbff
committed
Fix HistoryExport retry_policy assertion for JSON key-order variance
MySQL 8's JSON type normalizes object keys by length ascending, so a
retry_policy stored as [snapshot_version, max_attempts, backoff_seconds]
reads back as [max_attempts, backoff_seconds, snapshot_version]. The
in-memory Eloquent cast keeps the original insertion order, so the
bundle's policy (reloaded from the DB) and the model's in-memory policy
disagree on key order but not on values. `assertSame` is key-order
sensitive and failed on every v2 run.
Switch the single offending assertion to `assertEquals`, which compares
values the way JSON semantics actually are. All 18 HistoryExportTest
tests now pass against MySQL 8.1 parent 1ba6a63 commit 97cfbff
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
433 | 436 | | |
434 | 437 | | |
435 | 438 | | |
| |||
0 commit comments