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 小時 6 分鐘
30 天內合併 PR
92

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

cameri/nostream 的其他 Issue

查看 cameri/nostream 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。