generated from pricelees/issue-pr-template
[#64] 결제 & 예약 확정 API에서의 트랜잭션 범위 수정 #65
@ -32,7 +32,7 @@ export function maxIterations() {
|
||||
|
||||
export function fetchUsers() {
|
||||
const userCount = Math.round(maxIterations() * 0.5)
|
||||
const userAccountRes = http.get(`${BASE_URL}/tests/users?count=${userCount}`)
|
||||
const userAccountRes = http.get(`http://localhost:8080/tests/users?count=${userCount}`)
|
||||
|
||||
if (userAccountRes.status !== 200) {
|
||||
throw new Error('users 조회 실패')
|
||||
@ -42,7 +42,7 @@ export function fetchUsers() {
|
||||
}
|
||||
|
||||
export function fetchStores() {
|
||||
const storeIdListRes = http.get(`${BASE_URL}/tests/stores`)
|
||||
const storeIdListRes = http.get(`http://localhost:8080/tests/stores`)
|
||||
|
||||
if (storeIdListRes.status !== 200) {
|
||||
throw new Error('stores 조회 실패')
|
||||
|
||||
@ -15,13 +15,10 @@ export const options = {
|
||||
scenarios: {
|
||||
user_reservation: {
|
||||
executor: 'ramping-vus',
|
||||
startVUs: 0,
|
||||
startVUs: 1500,
|
||||
stages: [
|
||||
{ duration: '3m', target: 500 },
|
||||
{ duration: '2m', target: 1000 },
|
||||
{ duration: '2m', target: 1500 },
|
||||
{ duration: '3m', target: 1500 },
|
||||
{ duration: '3m', target: 0 },
|
||||
{ duration: '10m', target: 1500 },
|
||||
{ duration: '1m', target: 0 }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user