From 7698cfb91068e43148118965bf50696ea5be6756 Mon Sep 17 00:00:00 2001
From: Raja Kolli <rajadilipkolli@gmail.com>
Date: Fri, 30 Aug 2024 14:56:12 +0000
Subject: [PATCH] polish

---
 .../test/java/com/learning/awssns/common/ContainersConfig.java | 3 +--
 aws-sqs-project/docker/docker-compose.yml                      | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java b/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java
index ba856e11..5715dc6d 100644
--- a/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java
+++ b/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java
@@ -3,7 +3,6 @@
 import org.springframework.boot.test.context.TestConfiguration;
 import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
 import org.springframework.context.annotation.Bean;
-import org.springframework.test.context.DynamicPropertyRegistry;
 import org.testcontainers.containers.localstack.LocalStackContainer;
 import org.testcontainers.utility.DockerImageName;
 
@@ -12,7 +11,7 @@ public class ContainersConfig {
 
     @Bean
     @ServiceConnection
-    LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) {
+    LocalStackContainer localstackContainer() {
         return new LocalStackContainer(
                 DockerImageName.parse("localstack/localstack").withTag("3.7.0"));
     }
diff --git a/aws-sqs-project/docker/docker-compose.yml b/aws-sqs-project/docker/docker-compose.yml
index c1898349..65a4c5a3 100644
--- a/aws-sqs-project/docker/docker-compose.yml
+++ b/aws-sqs-project/docker/docker-compose.yml
@@ -10,7 +10,7 @@ services:
     ports:
       - "5432:5432"
     healthcheck:
-      test: [ "CMD-SHELL", "pg_isready -U postgres" ]
+      test: [ "CMD-SHELL", "pg_isready -U appuser" ]
       interval: 10s
       timeout: 5s
       retries: 5