Skip to content

Commit

Permalink
fix k6 amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben authored and PeterSmallenbroek committed Jan 13, 2025
1 parent a6a5b61 commit 6c33251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion k6/tests/retryFailedJobsOnStartupDuringQueueProcessing.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const programId = 3;
const paymentId = 3;
const maxTimeoutAttempts = 400;
const minPassRatePercentage = 100;
const amount = 10;

export const options = {
vus: 1,
Expand Down Expand Up @@ -46,7 +47,7 @@ export default function () {
});

// Do the payment
const doPayment = paymentsPage.createPayment(programId);
const doPayment = paymentsPage.createPayment(programId, amount);
check(doPayment, {
'Payment successfully done status 202': (r) => {
if (r.status != 202) {
Expand Down
3 changes: 2 additions & 1 deletion k6/tests/statusChangePaymentInLargeProgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const programId = 3;
const paymentId = 3;
const maxTimeoutAttempts = 200;
const minPassRatePercentage = 10;
const amount = 10;

export const options = {
thresholds: {
Expand Down Expand Up @@ -111,7 +112,7 @@ export default function () {
});

// Do the payment
const doPayment = paymentsPage.createPayment(programId);
const doPayment = paymentsPage.createPayment(programId, amount);
check(doPayment, {
'Payment successfully done status 202': (r) => {
if (r.status != 202) {
Expand Down

0 comments on commit 6c33251

Please sign in to comment.