Skip to content

[refactor#148] 답변 채택 API 성능 최적화 #198

[refactor#148] 답변 채택 API 성능 최적화

[refactor#148] 답변 채택 API 성능 최적화 #198

GitHub Actions / Test Results failed Nov 23, 2024 in 0s

5 fail, 124 pass in 26s

 28 files  ±0   28 suites  ±0   26s ⏱️ -18s
129 tests  - 1  124 ✅  - 6  0 💤 ±0  5 ❌ +5 
130 runs   - 2  125 ✅  - 7  0 💤 ±0  5 ❌ +5 

Results for commit 97f30ef. ± Comparison against earlier commit 18b9c6e.

Annotations

Check warning on line 0 in com.dnd.gongmuin.answer.service.AnswerServiceTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

[답변을 채택할 수 있다.] (com.dnd.gongmuin.answer.service.AnswerServiceTest) failed

build/test-results/test/TEST-com.dnd.gongmuin.answer.service.AnswerServiceTest.xml [took 1s]
Raw output
com.dnd.gongmuin.common.exception.runtime.NotFoundException: 해당 아이디의 답변이 존재하지 않습니다.
	at app//com.dnd.gongmuin.answer.service.AnswerService.lambda$getAnswerById$0(AnswerService.java:108)
	at [email protected]/java.util.Optional.orElseThrow(Optional.java:403)
	at app//com.dnd.gongmuin.answer.service.AnswerService.getAnswerById(AnswerService.java:108)
	at app//com.dnd.gongmuin.answer.service.AnswerService.chooseAnswer(AnswerService.java:80)
	at app//com.dnd.gongmuin.answer.service.AnswerServiceTest.chooseAnswer(AnswerServiceTest.java:139)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)

Check warning on line 0 in com.dnd.gongmuin.answer.service.AnswerServiceTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

[답변을 등록할 수 있다.] (com.dnd.gongmuin.answer.service.AnswerServiceTest) failed

build/test-results/test/TEST-com.dnd.gongmuin.answer.service.AnswerServiceTest.xml [took 0s]
Raw output
com.dnd.gongmuin.common.exception.runtime.NotFoundException: 해당 아이디의 질문 포스트가 존재하지 않습니다.
	at app//com.dnd.gongmuin.answer.service.AnswerService.lambda$findQuestionPostById$1(AnswerService.java:113)
	at [email protected]/java.util.Optional.orElseThrow(Optional.java:403)
	at app//com.dnd.gongmuin.answer.service.AnswerService.findQuestionPostById(AnswerService.java:113)
	at app//com.dnd.gongmuin.answer.service.AnswerService.registerAnswer(AnswerService.java:54)
	at app//com.dnd.gongmuin.answer.service.AnswerServiceTest.registerAnswer(AnswerServiceTest.java:92)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)

Check warning on line 0 in com.dnd.gongmuin.answer.service.AnswerServiceTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

[질문자가 아니면 채택할 수 없다.] (com.dnd.gongmuin.answer.service.AnswerServiceTest) failed

build/test-results/test/TEST-com.dnd.gongmuin.answer.service.AnswerServiceTest.xml [took 0s]
Raw output
java.lang.AssertionError: 
Expecting actual throwable to be an instance of:
  com.dnd.gongmuin.common.exception.runtime.ValidationException
but was:
  com.dnd.gongmuin.common.exception.runtime.NotFoundException: 해당 아이디의 답변이 존재하지 않습니다.
	at com.dnd.gongmuin.answer.service.AnswerService.lambda$getAnswerById$0(AnswerService.java:108)
	at java.base/java.util.Optional.orElseThrow(Optional.java:403)
	at com.dnd.gongmuin.answer.service.AnswerService.getAnswerById(AnswerService.java:108)
	...(92 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed)
	at com.dnd.gongmuin.answer.service.AnswerServiceTest.chooseAnswer_fail2(AnswerServiceTest.java:184)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check warning on line 0 in com.dnd.gongmuin.answer.service.AnswerServiceTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

[동시에 10_000개의 채택이 일어나 크레딧을 입금 받는다.] (com.dnd.gongmuin.answer.service.AnswerServiceTest) failed

build/test-results/test/TEST-com.dnd.gongmuin.answer.service.AnswerServiceTest.xml [took 12s]
Raw output
org.opentest4j.AssertionFailedError: expected: <0> but was: <10000000>
	at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
	at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:531)
	at app//com.dnd.gongmuin.answer.service.AnswerServiceTest.creditHistoryWithOneHundred(AnswerServiceTest.java:235)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)

Check warning on line 0 in com.dnd.gongmuin.answer.service.AnswerServiceTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

[크레딧이 부족하면 답변을 채택할 수 없다.] (com.dnd.gongmuin.answer.service.AnswerServiceTest) failed

build/test-results/test/TEST-com.dnd.gongmuin.answer.service.AnswerServiceTest.xml [took 0s]
Raw output
java.lang.AssertionError: 
Expecting actual throwable to be an instance of:
  com.dnd.gongmuin.common.exception.runtime.ValidationException
but was:
  com.dnd.gongmuin.common.exception.runtime.NotFoundException: 해당 아이디의 답변이 존재하지 않습니다.
	at com.dnd.gongmuin.answer.service.AnswerService.lambda$getAnswerById$0(AnswerService.java:108)
	at java.base/java.util.Optional.orElseThrow(Optional.java:403)
	at com.dnd.gongmuin.answer.service.AnswerService.getAnswerById(AnswerService.java:108)
	...(92 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed)
	at com.dnd.gongmuin.answer.service.AnswerServiceTest.chooseAnswer_fail(AnswerServiceTest.java:162)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)