Skip to content

Commit

Permalink
feat: add another error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Aug 13, 2024
1 parent 79c43f3 commit f914afd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/performance/scripts/create-outgoing-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit f914afd

Please sign in to comment.