Skip to content

Commit

Permalink
Fix wrong trend calls
Browse files Browse the repository at this point in the history
  • Loading branch information
MogageNicolae committed Aug 21, 2024
1 parent 53e3508 commit 9c7b8fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions k6/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ export function blocks() {

export function mexPairs() {
const response = http.get(`${BASE_URL}/mex/pairs`);
nodesApiCallTrend.add(response.timings.duration);
mexPairsApiCallTrend.add(response.timings.duration);
}

export function mexTokens() {
const response = http.get(`${BASE_URL}/mex/tokens`);
nodesApiCallTrend.add(response.timings.duration);
mexTokensApiCallTrend.add(response.timings.duration);
}

export function mexFarms() {
const response = http.get(`${BASE_URL}/mex/farms`);
nodesApiCallTrend.add(response.timings.duration);
mexFarmsApiCallTrend.add(response.timings.duration);
}

export function nodes() {
Expand All @@ -74,12 +74,12 @@ export function nodes() {

export function nodesAuctions() {
const response = http.get(`${BASE_URL}/nodes/auctions`);
nodesApiCallTrend.add(response.timings.duration);
nodesAuctionsApiCallTrend.add(response.timings.duration);
}

export function pool() {
const response = http.get(`${BASE_URL}/pool`);
nodesApiCallTrend.add(response.timings.duration);
poolApiCallTrend.add(response.timings.duration);
}

export function tokens() {
Expand Down

0 comments on commit 9c7b8fe

Please sign in to comment.