From f914afd19ae3fd3915293d3ac28a86e8cdeddcf3 Mon Sep 17 00:00:00 2001 From: Nathan Lie Date: Tue, 13 Aug 2024 13:18:37 +0200 Subject: [PATCH] feat: add another error condition --- test/performance/scripts/create-outgoing-payments.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/performance/scripts/create-outgoing-payments.js b/test/performance/scripts/create-outgoing-payments.js index 19692e2750..126ea6f24c 100644 --- a/test/performance/scripts/create-outgoing-payments.js +++ b/test/performance/scripts/create-outgoing-payments.js @@ -77,13 +77,17 @@ export function setup() { }), { headers: HEADERS } ) + + if (c9WalletAddressesRes.status !== 200) { + fail(`GraphQL Request failed to find ${CLOUD_NINE_WALLET_ADDRESS}`) + } const c9WalletAddresses = JSON.parse(c9WalletAddressesRes.body).data .walletAddresses.edges const c9WalletAddress = c9WalletAddresses.find( (edge) => edge.node.url === CLOUD_NINE_WALLET_ADDRESS ).node if (!c9WalletAddress) { - fail(`could not retrieve wallet address: ${CLOUD_NINE_WALLET_ADDRESS}`) + fail(`could not find wallet address: ${CLOUD_NINE_WALLET_ADDRESS}`) } return { data: { c9WalletAddress }}