Commit 4c1a5c0
Use JSON-key-order-agnostic assertions + waitFor child on status drift tests
MySQL 8 JSON columns sort keys by (length, alpha), which doesn't match
the literal-array order tests wrote. Swap three remaining
assertSame([...], $json_column) comparisons over to assertSameJsonObject
so they round-trip identically on MySQL and SQLite — matching the
pattern in 414843a / b81a943 / 26c587b.
Also: testWorkflowSummaryProjectsChildWaitAndHealthyRepairNoOp loaded
the child run before the child workflow task had executed, which left
it in the RunStatus::Pending bucket — then the test asserted 'waiting'.
The intent is to observe the child in its parked-for-timer state, so
add a waitFor on the child's RunStatus transitioning to Waiting before
sampling.
Clears 3 MySQL failures under #399:
* testStartRecordsBusinessKeyAndLabels
* testWorkflowCanContinueAsNewAcrossRuns
* testWorkflowSummaryProjectsChildWaitAndHealthyRepairNoOp
* testNestedParallelActivityAllWaitsForOuterActivityBeforeResumingParent…
* testWorkflowCanWaitForChildWorkflowAndCompleteWithChildOutput
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 81e3688 commit 4c1a5c0
2 files changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2717 | 2717 | | |
2718 | 2718 | | |
2719 | 2719 | | |
2720 | | - | |
| 2720 | + | |
2721 | 2721 | | |
2722 | 2722 | | |
2723 | 2723 | | |
| |||
2726 | 2726 | | |
2727 | 2727 | | |
2728 | 2728 | | |
2729 | | - | |
| 2729 | + | |
2730 | 2730 | | |
2731 | 2731 | | |
2732 | 2732 | | |
| |||
2858 | 2858 | | |
2859 | 2859 | | |
2860 | 2860 | | |
2861 | | - | |
| 2861 | + | |
2862 | 2862 | | |
2863 | 2863 | | |
2864 | 2864 | | |
| |||
2909 | 2909 | | |
2910 | 2910 | | |
2911 | 2911 | | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
2912 | 2917 | | |
2913 | | - | |
| 2918 | + | |
2914 | 2919 | | |
2915 | 2920 | | |
2916 | 2921 | | |
| |||
3537 | 3542 | | |
3538 | 3543 | | |
3539 | 3544 | | |
3540 | | - | |
| 3545 | + | |
3541 | 3546 | | |
3542 | 3547 | | |
3543 | 3548 | | |
| |||
3548 | 3553 | | |
3549 | 3554 | | |
3550 | 3555 | | |
3551 | | - | |
| 3556 | + | |
3552 | 3557 | | |
3553 | 3558 | | |
3554 | 3559 | | |
| |||
3566 | 3571 | | |
3567 | 3572 | | |
3568 | 3573 | | |
3569 | | - | |
| 3574 | + | |
3570 | 3575 | | |
3571 | 3576 | | |
3572 | 3577 | | |
| |||
0 commit comments