-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG/ticket] 성공/실패 요청 수 측정 오류 해결 #20
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이제 요청 수 측정이 올바르게 되는 것 같네요 :)
제안 사항 하나 코멘트로 남겨 두었으니 확인해 주세요!
@@ -110,21 +104,23 @@ void setUp() { | |||
} | |||
} | |||
|
|||
private void sendMultipleRequests(ExecutorService executorService, List<Member> members, Ticket... tickets) { | |||
private void sendMultipleRequests(Integer threadCount, List<Member> members, Ticket... tickets) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private void sendMultipleRequests(Integer threadCount, List<Member> members, Ticket... tickets) { | |
private void sendMultipleRequests(int ticketIssueCount, List<Member> members, Ticket... tickets) { |
try (ExecutorService executorService = Executors.newFixedThreadPool(threadCount)) { | ||
for (Member member : members) { | ||
for (int i = 0; i < MemberTicket.MEMBER_TICKET_COUNT_MAX; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try (ExecutorService executorService = Executors.newFixedThreadPool(threadCount)) { | |
for (Member member : members) { | |
for (int i = 0; i < MemberTicket.MEMBER_TICKET_COUNT_MAX; i++) { | |
int threadCount = members.size() * ticketIssueCount; | |
try (ExecutorService executorService = Executors.newFixedThreadPool(threadCount)) { | |
for (Member member : members) { | |
for (int i = 0; i < ticketIssueCount; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런 식으로 수정해 보는 건 어떨까요? 멤버당_티켓_발급_제한을_초과하는_요청_시_정상_처리_여부를_검증한다
테스트에서 멤버 티켓 발급 제한을 초과하지 않고 있는 문제가 있습니다
close: #19 를 해결합니다.