Skip to content

Commit

Permalink
upgrade the localstack version
Browse files Browse the repository at this point in the history
explicitly create and delete kinesis stream for tests
  • Loading branch information
dmytro.obodowsky committed Nov 21, 2023
1 parent 4884dca commit f987d12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
exit 0;
"
localstack:
image: localstack/localstack:1.2.0
image: localstack/localstack:3
ports:
- 4566:4566
environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class NewLocalStackSuite extends AnyFlatSpec with Matchers with ScalaFutures {

val data = List("foo", "bar", "baz")

val test = kAlgebraResource(kac, dac, cac).use { case (_, kAlgebra) =>
val test = kAlgebraResource(kac, dac, cac).use { case (ki, kAlgebra) =>
for {
_ <- Stream
.emits(data)
Expand Down Expand Up @@ -207,6 +207,9 @@ class NewLocalStackSuite extends AnyFlatSpec with Matchers with ScalaFutures {
k <- i.KinesisAsyncClientResource(kac)
kinesisInterpreter = i.create(k)
kAlgebra = Kinesis.create[IO](k, d, c)
_ <- Resource.make(
kinesisInterpreter.createStream(CreateStreamRequest.builder().streamName("test").build())
)(_ => kinesisInterpreter.deleteStream(DeleteStreamRequest.builder().streamName("test").build()).void)
} yield kinesisInterpreter -> kAlgebra

}

0 comments on commit f987d12

Please sign in to comment.