Skip to content

comment out not ending Semaphore test related to cats-effect#380#10

Open
halotukozak wants to merge 1 commit intoseries/3.x-avsfrom
disable-infinite-tests
Open

comment out not ending Semaphore test related to cats-effect#380#10
halotukozak wants to merge 1 commit intoseries/3.x-avsfrom
disable-infinite-tests

Conversation

@halotukozak
Copy link
Member

No description provided.

@halotukozak halotukozak self-assigned this Mar 10, 2026
Copilot AI review requested due to automatic review settings March 10, 2026 11:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR disables a non-terminating Semaphore regression test in CatsEffectIssue380Suite that’s related to typelevel/cats-effect#380, presumably to prevent the test suite from hanging.

Changes:

  • Commented out the Semaphore-related test case in CatsEffectIssue380Suite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +61 to +66
// test("Semaphore does not block on release — typelevel/cats-effect#380") {
// val service = Executors.newSingleThreadScheduledExecutor()
// implicit val ec = ExecutionContext.global
// implicit val cs = IO.contextShift(ec)
// implicit val timer = IO.timer(ec, service)
//
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting out the whole test block makes it easy for the code to rot and is inconsistent with how this repo skips flaky/hanging tests. Prefer keeping the test compiled and explicitly skipped via ignore(...) (at the very start of the test body, before creating the executor), or remove the test entirely if it’s permanently obsolete. See existing patterns like ignore("Test is flaky...") in monix-execution/jvm/src/test/scala/monix/execution/cancelables/ChainedCancelableJVMSuite.scala:37 and monix-execution/js/src/test/scala/monix/execution/internal/AsyncSchedulerJSSuite.scala:71-73.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants