Skip to content

Commit

Permalink
티케팅 생성 스크립트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
claycat committed May 28, 2024
1 parent 0926f24 commit be7f742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stress-test/k6-scripts/simulate.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ export default function ({userMetadata, ticketingId}) {
const data = getWaiting(ticketingId, accessToken);
token = data.token;
sleep(1);
} while (token === undefined);
} while (token === undefined || token === null);


const sleepDuration = getRandomFloat(20, 25);
const sleepDuration = getRandomFloat(15, 20);
console.log(`VU${userCounter} ${sleepDuration}초 후 구매 시도`);
sleep(sleepDuration);
purchase(ticketingId, 1, accessToken, token);
Expand Down

0 comments on commit be7f742

Please sign in to comment.