Skip to content

Commit

Permalink
Fixed faucet URL when executing from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Oct 23, 2023
1 parent ef26354 commit d4f12be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d4f12be

Please sign in to comment.