From d4f12be7916d88c97e82cfbd79946de8f1df51cb Mon Sep 17 00:00:00 2001 From: Marc Velmer Date: Mon, 23 Oct 2023 16:44:20 +0200 Subject: [PATCH] Fixed faucet URL when executing from CI --- test/integration/account.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/account.test.ts b/test/integration/account.test.ts index 54ee2c22..c06adde7 100644 --- a/test/integration/account.test.ts +++ b/test/integration/account.test.ts @@ -23,7 +23,8 @@ describe('Account integration tests', () => { expect(accountInfo.nonce).toEqual(0); }, 75000); it('should bootstrap a new account using a raw faucet package payload', async () => { - const faucetPackage = await FaucetAPI.collect(client.faucetService.url, await wallet.getAddress()); + const faucetUrl = process.env.FAUCET_URL ?? client.faucetService.url; + const faucetPackage = await FaucetAPI.collect(faucetUrl, await wallet.getAddress()); const accountInfo = await client.createAccount({ faucetPackage: faucetPackage.faucetPackage }); expect(accountInfo.balance).toBeGreaterThan(0); }, 75000);