Skip to content

Commit

Permalink
Remove unused "dirtyStuff" from test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Jun 14, 2024
1 parent 620abc1 commit d4f5396
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,10 @@ package org.typelevel.log4cats.slf4j
package internal

import cats.effect.IO
import java.util.concurrent.Executors
import java.util.concurrent.ThreadFactory
import org.slf4j.MDC
import munit.CatsEffectSuite
import scala.concurrent.ExecutionContext
import scala.concurrent.ExecutionContextExecutorService

class Slf4jLoggerInternalSuite extends CatsEffectSuite {

object dirtyStuff {

def namedSingleThreadExecutionContext(name: String): ExecutionContextExecutorService =
ExecutionContext.fromExecutorService(
Executors.newSingleThreadExecutor(new ThreadFactory() {
def newThread(r: Runnable): Thread = new Thread(r, name)
})
)

def killThreads(threads: List[ExecutionContextExecutorService]) = threads.foreach { thread =>
try thread.shutdownNow()
catch {
case e: Throwable =>
Console.err.println("Couldn't shutdown thread")
e.printStackTrace()
}
}
}

test("Slf4jLoggerInternal resets after logging") {
val variable = "foo"
val initial = "yellow"
Expand Down

0 comments on commit d4f5396

Please sign in to comment.