Flaky: soak.spec matches the previous post's status line #256

Closed
opened 2026-10-21 23:48:23 +00:00 by littlefox · 1 comment
Owner

CI run #410 (PR #254): soak.spec.ts failed with expect(no).not.toBe(lastNo), "416" twice.

After Skicka, the spec waits for the status to contain "Inlägg N är publicerat" and then reads N. The previous post's status line still says that, so the wait passes at once and N is the old number, before the new status replaces it. The spec's own comment says the previous post's status line mustn't count; the check catches it, but by failing.

Fix: wait until the status has a number other than the last one. A post that was never made still fails, by timing out.

CI run #410 (PR #254): `soak.spec.ts` failed with `expect(no).not.toBe(lastNo)`, "416" twice. After Skicka, the spec waits for the status to contain "Inlägg N är publicerat" and then reads N. The previous post's status line still says that, so the wait passes at once and N is the old number, before the new status replaces it. The spec's own comment says the previous post's status line mustn't count; the check catches it, but by failing. Fix: wait until the status has a number other than the last one. A post that was never made still fails, by timing out.
Author
Owner

Fixed in #254 (main #426 green): the soak spec waits for a new post number. Soak passed locally (60 s, 32 posts, 16 drops) and in CI.

Fixed in #254 (main #426 green): the soak spec waits for a new post number. Soak passed locally (60 s, 32 posts, 16 drops) and in CI.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
littlefox/neokom#256
No description provided.