Commit 3ebc382
committed
test: cover read gating during a workspace storage transition
readIndex/readPayload/getPayloadKeys switched to isStorageReadable(),
which permits reads while a transition is in progress and resumeAvailability
is 'available' -- distinct from isStorageAvailable(), which writes use.
No test asserted this; a regression that read-gated on isStorageAvailable()
instead would have passed the existing suite.
Also moved the transition-lifecycle tests out of the clearWorkflowRestoreState
describe block into their own, since they exercise the transition state
machine rather than that function specifically.
Found by CodeRabbit on #14337.1 parent 6dc319e commit 3ebc382
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
500 | 517 | | |
501 | 518 | | |
502 | 519 | | |
| |||
0 commit comments