Skip to content

Commit 8509bf9

Browse files
authored
Merge branch 'v2.0' into feat/session-properties
2 parents ade7e4e + d79d860 commit 8509bf9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/sign-client/test/sdk/integration/push.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import axios from "axios";
22
import {
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:",

packages/sign-client/test/shared/values.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1414
export 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

1619
export const TEST_PROJECT_ID = process.env.TEST_PROJECT_ID
1720
? process.env.TEST_PROJECT_ID

0 commit comments

Comments
 (0)