Watchdog notice reader test: the closure posted beside a late opening has one attempt
The finally-sends test expected six attempts on all three journal rows, but the
closure entry is first tried in the run that completes its opening, so it has
one. Test-only fix; the previous commit's test failed on this line.
The previous commit (69e12e3867) builds; its
suite has one failing test, fixed here.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
69e12e3867
commit
c468f05eaf
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ test("a notice that finally sends after many failures posts once", async () => {
|
|||
const before = (await w.posts()).length;
|
||||
for (const minute of [32, 100, 1000]) assert.equal(w.run({ env: at(minute) }).status, 0);
|
||||
assert.equal((await w.posts()).length, before, "completed is never posted again");
|
||||
assert.deepEqual((await w.status()).rows.map((row) => `${row.status}:${row.attempts}`), ["completed:6", "completed:6", "completed:6"]);
|
||||
assert.deepEqual((await w.status()).rows.map((row) => `${row.status}:${row.attempts}`), ["completed:1", "completed:6", "completed:6"]);
|
||||
});
|
||||
|
||||
test("the reader never writes or locks the incident store", async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue