Skip to content

Commit

Permalink
test: enable sequencer test activation
Browse files Browse the repository at this point in the history
  • Loading branch information
penovicp committed Nov 13, 2023
1 parent cbebfce commit faf5c34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
ports:
- 5050:5050

# TODO - temporary conditional, remove if/when devnet RPC support is restored
if: ${{ (!inputs.use-rpc-devnet) }}

env:
TEST_PROVIDER_BASE_URL: ${{ secrets.TEST_PROVIDER_BASE_URL }}
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}
Expand Down
10 changes: 5 additions & 5 deletions __tests__/jestGlobalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* ref: order of execution jestGlobalSetup.ts -> jest.setup.ts -> fixtures.ts
*/

import { getDefaultNodeUrl } from '../src';
// import { getDefaultNodeUrl } from '../src';
import { BaseUrl } from '../src/constants';

type DevnetStrategy = {
Expand Down Expand Up @@ -156,10 +156,10 @@ const verifySetup = (final?: boolean) => {
if (final) throw new Error('TEST_ACCOUNT_PRIVATE_KEY env is not provided');
else warnings.push('TEST_ACCOUNT_PRIVATE_KEY env is not provided!');
}
if (!process.env.TEST_RPC_URL) {
process.env.TEST_RPC_URL = getDefaultNodeUrl();
console.warn('TEST_RPC_URL env is not provided');
}
// if (!process.env.TEST_RPC_URL) {
// process.env.TEST_RPC_URL = getDefaultNodeUrl();
// console.warn('TEST_RPC_URL env is not provided');
// }

if (warnings.length > 0) {
console.log('\x1b[33m', warnings.join('\n'), '\x1b[0m');
Expand Down

0 comments on commit faf5c34

Please sign in to comment.