test(kap-server): poll eventually-consistent session list reads - #12
Merged
Conversation
Wrap the remaining five create/archive/delete-then-list assertions in sessions.test.ts with expect.poll — same eventual-consistency family as the earlier restore and searchRoute fixes (CI flakes under load).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
打磨续篇:
sessions.test.ts中剩余五处「创建/归档/删除后立即断言列表」与 PR #11 已修复的两处同族——读模型最终一致,CI 高负载下偶发读不到刚写入的会话。Problem
五个用例在写操作后立即读列表断言,无重试。本会话中同族 flake 已实锤三次。
What changed
仅测试文件:五处「立即断言」改为
expect.poll轮询重取列表(interval 1s),断言语义不变。涉及:验证
sessions.test.ts全量 69/69 通过。Checklist