Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed Oct 13, 2023
1 parent d71deb4 commit cc7c404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/util/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/client/test/util/rpc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cc7c404

Please sign in to comment.