From ea27be9735c0be89469c9ab6a2d4a003722fe54d Mon Sep 17 00:00:00 2001 From: Victor Yanev Date: Tue, 17 Dec 2024 14:44:36 +0200 Subject: [PATCH] fix: "acceptancetest:hbarlimiter_batch3" Signed-off-by: Victor Yanev --- packages/server/tests/acceptance/index.spec.ts | 4 ++-- packages/ws-server/tests/acceptance/index.spec.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/server/tests/acceptance/index.spec.ts b/packages/server/tests/acceptance/index.spec.ts index a1e3720a97..8e5a4c7b60 100644 --- a/packages/server/tests/acceptance/index.spec.ts +++ b/packages/server/tests/acceptance/index.spec.ts @@ -19,10 +19,10 @@ */ // External resources import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services'; +import dotenv from 'dotenv'; import path from 'path'; +dotenv.config({ path: path.resolve(__dirname, '../../../../.env') }); -import { ConfigServiceTestHelper } from '../../../config-service/tests/configServiceTestHelper'; -ConfigServiceTestHelper.appendEnvsFromPath(path.resolve(__dirname, '../../../../.env')); // Constants import constants from '@hashgraph/json-rpc-relay/dist/lib/constants'; import { app as wsApp } from '@hashgraph/json-rpc-ws-server/dist/webSocketServer'; diff --git a/packages/ws-server/tests/acceptance/index.spec.ts b/packages/ws-server/tests/acceptance/index.spec.ts index 92f7f74655..aadf932f7c 100644 --- a/packages/ws-server/tests/acceptance/index.spec.ts +++ b/packages/ws-server/tests/acceptance/index.spec.ts @@ -20,10 +20,9 @@ import { Server } from 'node:http'; import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services'; +import dotenv from 'dotenv'; import path from 'path'; - -import { ConfigServiceTestHelper } from '../../../config-service/tests/configServiceTestHelper'; -ConfigServiceTestHelper.appendEnvsFromPath(path.resolve(__dirname, '../../../../.env')); +dotenv.config({ path: path.resolve(__dirname, '../../../../.env') }); import constants from '@hashgraph/json-rpc-relay/dist/lib/constants'; import { RequestDetails } from '@hashgraph/json-rpc-relay/dist/lib/types'; import { setServerTimeout } from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/utils';