Skip to content

Commit

Permalink
fix: create receiver 401 with multiple vus (#3300)
Browse files Browse the repository at this point in the history
- identified as a duplicate request by backend
adds nonce to differentiate
  • Loading branch information
BlairCurrey authored Feb 18, 2025
1 parent 85def50 commit 641d23b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/performance/scripts/create-outgoing-payments.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import http from 'k6/http'
import { fail } from 'k6'
import { createHMAC } from 'k6/crypto'
import { uuidv4 } from 'https://jslib.k6.io/k6-utils/1.4.0/index.js'
import { canonicalize } from '../dist/json-canonicalize.bundle.js'

export const options = {
Expand All @@ -27,7 +28,7 @@ function generateSignedHeaders(requestPayload) {

return {
'Content-Type': 'application/json',
signature: `t=${timestamp}, v${SIGNATURE_VERSION}=${digest}`
signature: `t=${timestamp}, v${SIGNATURE_VERSION}=${digest}, n=${uuidv4()}`
}
}

Expand Down

0 comments on commit 641d23b

Please sign in to comment.