File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
packages/sign-client/test Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import axios from "axios";
22import {
33 deleteClients ,
44 TEST_EMIT_PARAMS ,
5+ TEST_WEBHOOK_DELAY_MS ,
56 TEST_WEBHOOK_ENDPOINT ,
67 throttle ,
78 Clients ,
@@ -29,7 +30,7 @@ describe("Push", () => {
2930
3031 // Relay processes webhooks in background
3132 // Extend some time to relay to process it
32- await throttle ( 1000 ) ;
33+ await throttle ( TEST_WEBHOOK_DELAY_MS ) ;
3334
3435 const url = `${ TEST_WEBHOOK_ENDPOINT } /${ await clients . B . core . crypto . getClientId ( ) } ` . replace (
3536 "did:key:" ,
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ export const TEST_RELAY_URL_AP = "wss://ap-southeast-1.relay.walletconnect.com";
1212
1313// See https://github.com/WalletConnect/push-webhook-test-server
1414export const TEST_WEBHOOK_ENDPOINT = "https://webhook-push-test.walletconnect.com/" ;
15+ export const TEST_WEBHOOK_DELAY_MS = process . env . TEST_WEBHOOK_DELAY_MS
16+ ? process . env . TEST_WEBHOOK_DELAY_MS
17+ : 1000 ;
1518
1619export const TEST_PROJECT_ID = process . env . TEST_PROJECT_ID
1720 ? process . env . TEST_PROJECT_ID
You can’t perform that action at this time.
0 commit comments