From f64d9970e3a00c559ea95d4d92209a6d50f38ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Herna=CC=81ndez?= Date: Wed, 6 Nov 2024 19:47:20 +0100 Subject: [PATCH] Fix compilation --- .../gcp/auth/pureconfig/TypeTokenSuite.scala | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/gcp-auth-pureconfig/src/test/scala/com/permutive/gcp/auth/pureconfig/TypeTokenSuite.scala b/modules/gcp-auth-pureconfig/src/test/scala/com/permutive/gcp/auth/pureconfig/TypeTokenSuite.scala index a1c1da3..e9aad2d 100644 --- a/modules/gcp-auth-pureconfig/src/test/scala/com/permutive/gcp/auth/pureconfig/TypeTokenSuite.scala +++ b/modules/gcp-auth-pureconfig/src/test/scala/com/permutive/gcp/auth/pureconfig/TypeTokenSuite.scala @@ -83,10 +83,6 @@ class TypeTokenSuite extends CatsEffectSuite with Http4sMUnitSyntax { assertIO(result, AccessToken.noop) } - final case class Config(tokenType: TokenType) - - implicit val ConfigConfigReader: ConfigReader[Config] = ConfigReader.forProduct1("token-type")(Config.apply) - def fixture(resource: String) = ResourceFunFixture { Resource.make { IO(sys.props("user.home")).flatTap(_ => IO(sys.props.put("user.home", getClass.getResource(resource).getPath()))) @@ -94,3 +90,11 @@ class TypeTokenSuite extends CatsEffectSuite with Http4sMUnitSyntax { } } + +final case class Config(tokenType: TokenType) + +object Config { + + implicit val ConfigConfigReader: ConfigReader[Config] = ConfigReader.forProduct1("token-type")(Config.apply) + +}