Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
etspaceman committed Nov 8, 2024
1 parent dcc77de commit 0cfc025
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import scala.util.Try
import java.net.URI

import cats.effect.{IO, Resource, SyncIO}
import com.amazonaws.regions.Regions
import com.amazonaws.regions.RegionUtils
import munit.{CatsEffectFunFixtures, CatsEffectSuite}
import org.scalacheck.Gen
import org.typelevel.log4cats.slf4j.Slf4jLogger
Expand Down Expand Up @@ -66,7 +66,7 @@ trait AwsFunctionalTests extends CatsEffectSuite with CatsEffectFunFixtures {
.oneOf(
AwsRegion.values
.filterNot(_ == AwsRegion.US_EAST_1)
.filter(x => Try(Regions.fromName(x.entryName)).isSuccess)
.filter(x => Try(RegionUtils.getRegion(x.entryName)).isSuccess)
)
.one
)
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/src/test/scala/kinesis/mock/KPLTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.nio.ByteBuffer

import cats.effect.{IO, Resource, SyncIO}
import cats.syntax.all._
import com.amazonaws.regions.Regions
import com.amazonaws.regions.RegionUtils
import com.amazonaws.services.kinesis.producer._

import kinesis.mock.instances.arbitrary._
Expand All @@ -25,7 +25,7 @@ class KPLTests extends AwsFunctionalTests {
new KinesisProducerConfiguration()
.setCredentialsProvider(AwsCreds.LocalCreds)
.setRegion(
Regions.fromName(resources.awsRegion.entryName).getName
RegionUtils.getRegion(resources.awsRegion.entryName).getName
)
.setKinesisEndpoint("localhost")
.setKinesisPort(4567L) // KPL only supports TLS
Expand Down

0 comments on commit 0cfc025

Please sign in to comment.