Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

test: the replay oracle never asserts silence

未关闭 适合新手
#955 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
backend, testing

调研方向

从 tests/wire_parity.rs 开始,阅读重放判定器的 none 标志和 collect 逻辑。使用 req-close-abort fixture,其中 send=true 且 expect 为空,以检查静默情况,并查看会话结束前如何处理后续帧。完成的标准是检查记录的 CLOSE 是否保持静默,并检测到意外的后续帧。

由索引模型根据 Issue 内容生成。

描述

bug factory rewrite rust

tests/wire_parity.rs: the none flag is send/drain/connect all null. Recorded silent steps carry a send object and an empty expect, so the flag is always false for exactly the steps that need silence asserted; collect then reads zero frames and returns immediately. Verified in the fixture: req-close-abort has send=true with an empty expect, so its recorded CLOSE is never checked for silence.

Fix: derive the silent case from the expectation (empty expect) rather than from the absence of a send, and check for unexpected trailing frames before ending a session.

Evidence: #948.

主要语言
TypeScript
星标
829
派生
234
平均合并
17 小时 40 分钟
30 天内合并 PR
90

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cameri/nostream 的其他 Issue

查看 cameri/nostream 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。