Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
  • Loading branch information
georgi-l95 committed Sep 9, 2022
1 parent 694e552 commit e5b1e86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/server/tests/helpers/prerequisite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import path from 'path';
dotenv.config({ path: path.resolve(__dirname, '../../../.env') });

const USE_LOCAL_NODE = process.env.LOCAL_NODE || 'true';
const LOCAL_RELAY_URL = 'http://localhost:7546';
const LOCAL_RELAY_URL = 'http://127.0.0.1:7546';
const RELAY_URL = process.env.E2E_RELAY_HOST || LOCAL_RELAY_URL;

(function () {
Expand All @@ -24,8 +24,11 @@ const RELAY_URL = process.env.E2E_RELAY_HOST || LOCAL_RELAY_URL;

console.log('Turning on compression...');
shell.exec(`echo 'hedera.recordStream.compressFilesOnCreation=true' >> node_modules/@hashgraph/hedera-local/compose-network/network-node/data/config/bootstrap.properties`);
//on ubuntu
shell.exec(`sed -i 's/ STREAM_EXTENSION: "rcd"/ STREAM_EXTENSION: "rcd.gz"/' node_modules/@hashgraph/hedera-local/docker-compose.yml`);

//on mac
// shell.exec(`sed -i '' 's/ STREAM_EXTENSION: "rcd"/ STREAM_EXTENSION: "rcd.gz"/' node_modules/@hashgraph/hedera-local/docker-compose.yml`);

console.log('Start local node');
shell.exec(`hedera start -d`);
console.log('Hedera Hashgraph local node env started');
Expand Down
2 changes: 1 addition & 1 deletion packages/server/tests/localAcceptance.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHAIN_ID=0x128
MIRROR_NODE_URL=http://127.0.0.1:5551
LOCAL_NODE=true
SERVER_PORT=7546
RELAY_ENDPOINT='http://localhost:7546'
RELAY_ENDPOINT='http://127.0.0.1:7546'
# cypress metamask config
NETWORK_NAME='local hedera'
RPC_URL='http://localhost:7546'
Expand Down

0 comments on commit e5b1e86

Please sign in to comment.