Skip to content

Commit

Permalink
Fix spring-messaging tests (#7157)
Browse files Browse the repository at this point in the history
Fixes jdk 17+ tests. Merging now
  • Loading branch information
amarziali committed Jun 11, 2024
1 parent 71d0b3d commit 64c74a7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Import
import software.amazon.awssdk.auth.credentials.AnonymousCredentialsProvider
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.sqs.SqsAsyncClient

import jakarta.annotation.PreDestroy
Expand All @@ -34,6 +35,7 @@ class Config {
def sqsAddress = sqsRestServer().waitUntilStarted().localAddress()
return SqsAsyncClient.builder()
.credentialsProvider(AnonymousCredentialsProvider.create())
.region(Region.AWS_GLOBAL)
.endpointOverride(new URI("http://localhost:${sqsAddress.port}"))
.build()
}
Expand Down

0 comments on commit 64c74a7

Please sign in to comment.