Skip to content

MutableSuiteTest is flaky #201

@zainab-ali

Description

@zainab-ali

The MutableSuiteTest for sleeping is flaky:

  test("sleeping") {
    for {
      before <- CatsUnsafeRun.realTimeMillis
      _      <- CatsUnsafeRun.sleep(1.seconds)
      after  <- CatsUnsafeRun.realTimeMillis
    } yield expect(after - before >= 1000)
  }

The test suite is run by DogFoodTests. This failed in Github Actions:
https://github.com/typelevel/weaver-test/actions/runs/17489340107/job/49675350638#step:10:135

 [info] *************FAILURES**************
[info] weaver.framework.test.DogFoodTests
[info] - test suite reports successes events 3s
[info]   weaver.framework.test.Meta$MutableSuiteTest:TestSelector(sleeping) failed with Failure (modules/framework-cats/shared/src/test/scala/DogFoodTests.scala:22)
[info] 
[info]   modules/framework-cats/shared/src/test/scala/DogFoodTests.scala:22
[info]         case (_, events) => forEach(events)(isSuccess)
[info]                                                     ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions