A peer route test compares snapshots that include serverNow

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

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
testing

調査の方向性

tests/web/peer_routes.rs の195行目付近を読み、2回の f.get 呼び出しから得られるスナップショットがどのように比較されているかを確認してください。serverNow を無視するよう比較を調整し、その後 peer route のテストを実行して、404 リクエスト後も関連する状態が変わらないことを確認してください。

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

説明

peer::routes::a_session_action_with_extra_path_segments_is_not_found_and_changes_nothing (tests/web/peer_routes.rs:195) takes before = f.get(&path, 0), sends the 404 request, and asserts the second f.get equals before. The two snapshots differ only in serverNow, so a one-second tick between the reads fails the lane: seen on #630's gates (rust) (1794155450 against 1794155449) while #629 and #628 passed from the same minute. Compare the snapshots without serverNow. A test that reads the clock twice is the cause, not the dependency bump in #630.

主要言語
Rust
スター
223
フォーク
148
平均マージ
1日 4時間
マージ済み PR(30日)
223

環境構築

はじめの一歩

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

sysprog21/codetrial のほかの issue

sysprog21/codetrial の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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