From cc7c404038b35cd8411066c74d633188d9fd474a Mon Sep 17 00:00:00 2001 From: Holger Drewes Date: Fri, 13 Oct 2023 12:30:08 +0200 Subject: [PATCH] Fix test --- packages/client/src/util/rpc.ts | 2 +- packages/client/test/util/rpc.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/util/rpc.ts b/packages/client/src/util/rpc.ts index 4c5b7b23ef..ce39808a5a 100644 --- a/packages/client/src/util/rpc.ts +++ b/packages/client/src/util/rpc.ts @@ -67,7 +67,7 @@ export function createRPCServer( const onRequest = (request: any) => { let msg = '' - if (rpcDebug !== '') { + if (rpcDebug && rpcDebug !== '') { let show = false if (rpcDebug === 'all') { show = true diff --git a/packages/client/test/util/rpc.spec.ts b/packages/client/test/util/rpc.spec.ts index 95f168c330..d177b2d803 100644 --- a/packages/client/test/util/rpc.spec.ts +++ b/packages/client/test/util/rpc.spec.ts @@ -22,7 +22,7 @@ describe('[Util/RPC]', () => { const manager = new RPCManager(client, config) const { logger } = config for (const methodConfig of Object.values(MethodConfig)) { - for (const rpcDebug of [false, true]) { + for (const rpcDebug of ['', 'eth']) { const { server } = createRPCServer(manager, { methodConfig, rpcDebug, logger }) const httpServer = createRPCServerListener({ server,