Skip to content

Commit

Permalink
sdk: stop verifyConstants from bricking ci
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jul 25, 2024
1 parent 04b78c9 commit 4819aec
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sdk/tests/ci/verifyConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ describe('Verify Constants', function () {
const MAINNET_RPC_ENDPOINT = process.env.MAINNET_RPC_ENDPOINT;
const DEVNET_RPC_ENDPOINT = process.env.DEVNET_RPC_ENDPOINT;

if (MAINNET_RPC_ENDPOINT === undefined) {
throw new Error('MAINNET_RPC_ENDPOINT not found in .env');
}

if (DEVNET_RPC_ENDPOINT === undefined) {
throw new Error('DEVNET_RPC_ENDPOINT not found in .env');
// avoid breaking pre-commit
if (MAINNET_RPC_ENDPOINT === undefined && DEVNET_RPC_ENDPOINT === undefined) {
return;
}

const wallet = new Wallet(Keypair.generate());
Expand Down

0 comments on commit 4819aec

Please sign in to comment.