fill.test.ts: lite-05 FETCH of a missing group intermittently answers Old instead of NotFound

オープン 初心者向け
#10,646 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bun, typescript

調査の方向性

js/net/src/fill.test.ts と、名前が挙げられている moq-lite-05 FETCH テストを読み、その後、issue によると Manual クロックを設定する cache.test.ts とクロックの設定を比較してください。動作を確認するために bun test src/fill.test.ts と bun test src を実行してください。キャッシュされていないグループについて、テストスイート全体が一貫して NotFound を期待すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Problem

js/net/src/fill.test.ts, "fill: moq-lite-05 FETCH reads a group the publisher never cached, and NotFound for one it lacks", fails intermittently when the whole @moq/net suite runs (bun test src). Fetching the missing group 1 rejects with Old (0x34) instead of NotFound (0x33):

expect(toStreamCode(missing)).toBe(StreamCode.NotFound);
Expected: 51
Received: 52

The test passes alone (bun test src/fill.test.ts) and when filtered with -t. It failed in 1 of 2 full runs on main at 82f5652d5f (Windows host), and in 3 of 3 full runs on a branch based on it. An Old verdict depends on time, so the test likely reads the host clock and ages the group when the full suite runs slowly. A Manual clock (as cache.test.ts installs) would make it deterministic.

(Written by Opus 5.5)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
9時間 50分
マージ済み PR(30日)
804

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。