Unify test setup: ensure tests run fully independently, and mark any known flaky tests

オープン
#272 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か

調査の方向性

Start with the Test.Reset() implementation and the test files that reset state between tests. Compare the rollback behavior with the linked cadence-tools fix, then inspect timing-sensitive scheduled-transaction tests against the linked cadence fix. Done means tests run independently and known wall-clock-dependent flaky tests are explicitly marked.

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

説明

Current Test.Reset() implementation fails on rollback to current height.
Often test files reset on every test except the first, this will fail when only a single test is run in that file.
Fix: https://github.com/onflow/cadence-tools/pull/604

Scheduled transactions execute at a time determined by the emulator clock, which drifts with real wall time. This makes tests that assert on timing-sensitive behavior inherently flaky.
Fix: https://github.com/onflow/cadence/pull/4466

主要言語
Cadence
スター
41
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

onflow/FlowYieldVaults のほかの issue

onflow/FlowYieldVaults の issue をすべて見る

似ている issue

Blockchain の issue をもっと見る

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

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