diff --git a/testing/shared/src/test/scala/org/typelevel/log4cats/extras/DeferredLoggerFactoryTest.scala b/testing/shared/src/test/scala/org/typelevel/log4cats/extras/DeferredLoggerFactoryTest.scala index 11bf3d81..3787b1bd 100644 --- a/testing/shared/src/test/scala/org/typelevel/log4cats/extras/DeferredLoggerFactoryTest.scala +++ b/testing/shared/src/test/scala/org/typelevel/log4cats/extras/DeferredLoggerFactoryTest.scala @@ -22,7 +22,14 @@ import cats.effect.IO import cats.syntax.all.* import org.typelevel.log4cats.SelfAwareStructuredLogger import org.typelevel.log4cats.testing.TestingLoggerFactory -import org.typelevel.log4cats.testing.TestingLoggerFactory.{Debug, Error, Info, LogMessage, Trace, Warn} +import org.typelevel.log4cats.testing.TestingLoggerFactory.{ + Debug, + Error, + Info, + LogMessage, + Trace, + Warn +} import scala.annotation.nowarn diff --git a/testing/shared/src/test/scala/org/typelevel/log4cats/extras/LogMessageTest.scala b/testing/shared/src/test/scala/org/typelevel/log4cats/extras/LogMessageTest.scala index 072b24ac..e2e52d1b 100644 --- a/testing/shared/src/test/scala/org/typelevel/log4cats/extras/LogMessageTest.scala +++ b/testing/shared/src/test/scala/org/typelevel/log4cats/extras/LogMessageTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2018 Typelevel + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.typelevel.log4cats.extras import cats.effect.IO @@ -13,7 +29,12 @@ class LogMessageTest extends munit.CatsEffectSuite { IO.delay(LogMessage(LogLevel.Info, haltAndCatchFire, none, Map.empty)) .attemptTap { result => - IO.delay(assert(result.isRight, clue("Should be ok here, the lazy exception shouldn't be triggered yet"))) + IO.delay( + assert( + result.isRight, + clue("Should be ok here, the lazy exception shouldn't be triggered yet") + ) + ) } .flatTap { lm => IO.delay(lm.lazyMessage()).intercept[HaltAndCatchFire]