Skip to content

Commit

Permalink
Merge pull request #99 from Kid-Bean/refactor/ldy/performance
Browse files Browse the repository at this point in the history
fix: 테스트 관련 오류 수정
  • Loading branch information
leedy3838 authored Jul 28, 2024
2 parents 2b2565b + 8623bfc commit a198f5a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/gradle-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ jobs:
- name: Grant execute permission to gradlew
run: chmod +x ./gradlew

# TestDB MySQL 설정
- name: Setup MySQL
uses: samin/mysql-action@v1
with:
character set server: 'utf8'
mysql database: 'kidbeantestdb'
mysql user: 'root'
mysql password: 'test'

# Spring boot application 빌드
- name: Build with gradle
run: ./gradlew clean build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.junit.jupiter.api.TestInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.http.MediaType;
import org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers;
import org.springframework.test.web.servlet.MockMvc;
Expand All @@ -40,7 +41,7 @@

@Slf4j
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
public class ImageQuizConcurrentTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.junit.jupiter.api.TestInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.util.StopWatch;
import soongsil.kidbean.server.global.domain.S3Info;
import soongsil.kidbean.server.imagequiz.application.ImageQuizService;
Expand All @@ -37,7 +38,7 @@

@Slf4j
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
public class ImageQuizTuningTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.junit.jupiter.api.TestInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.http.MediaType;
import org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers;
import org.springframework.test.web.servlet.MockMvc;
Expand All @@ -39,7 +40,7 @@

@Slf4j
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
public class WordQuizConcurrentTest {

@Autowired
Expand Down

0 comments on commit a198f5a

Please sign in to comment.