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

Abierto
#272 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Tranquilo

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Cadence
Estrellas
41
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de onflow/FlowYieldVaults

Todos los issues de onflow/FlowYieldVaults

Issues similares

Más issues de Blockchain

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.