Repository navigation
Commit 26b91a7
committed
Cover held ordering locks in cfworkers
src/mod.test.ts covered the ordering lock being taken and released, but
never the case where processMessage() finds one already held and returns
shouldProcess: false. test/mq.test.ts covers that branch by stubbing
get() to return a lock unconditionally; this test takes the lock with a
real processMessage() call and sends a second message for the same key
without releasing it, so it also proves the key that processMessage()
writes is the one it later reads back.
Closes #879
Changelog: none
Assisted-by: Claude Code:claude-opus-51 parent 81416ae commit 26b91a7
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
376 | 398 | | |
0 commit comments