diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c4a203f..1a4a406 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,3 +26,5 @@ jobs: - name: Run Gradle Test run: ./gradlew test + env: + SPRING_PROFILES_ACTIVE: dev diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 00bc456..554b251 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -8,3 +8,7 @@ spring: username: ${DB_USER} password: ${DB_PASS} driver-class-name: org.mariadb.jdbc.Driver + hikari: + initializationFailTimeout: 9000 + maximum-pool-size: 3 + minimum-idle: 1 diff --git a/src/test/java/picdiary/diary/service/DiaryServiceTest.java b/src/test/java/picdiary/diary/service/DiaryServiceTest.java index aa64917..ccc56d9 100644 --- a/src/test/java/picdiary/diary/service/DiaryServiceTest.java +++ b/src/test/java/picdiary/diary/service/DiaryServiceTest.java @@ -28,7 +28,7 @@ public class DiaryServiceTest { @Test public void testDiary() { - DiaryCreateRequest createRequest = DiaryCreateRequest.builder().date(date).emotion(emotion).build(); + DiaryCreateRequest createRequest = DiaryCreateRequest.builder().content("test").date(date).emotion(emotion).build(); diaryId = diaryService.createDiary(userId, createRequest); assertNotNull(diaryId);