Skip to content

Fix missing web3_client_version.js module in k6 tests #3648

@quiet-node

Description

@quiet-node

Issue Description

When running npm run k6, the test fails with the following error:

ERRO[0002] GoError: The moduleSpecifier "./web3_client_version.js" couldn't be found on local disk. Make sure that you've specified the right path to the file. If you're running k6 using the Docker image make sure you have mounted the local directory (-v /local/path/:/inside/docker/path) containing your script and modules so that they're accessible by k6 from inside of the container, see https://grafana.com/docs/k6/latest/using-k6/modules/#using-local-modules-with-docker.
at go.k6.io/k6/js.(requireImpl).require-fm (native)
at file:///Users/user/development/hashgraph/hedera-json-rpc-relay/k6/src/scenarios/test/index.js:46:0(385)
at go.k6.io/k6/js.(requireImpl).require-fm (native)
at file:///Users/user/development/hashgraph/hedera-json-rpc-relay/k6/src/scenarios/apis.js:7:0(44) hint="script exception"

Root Cause

The import statement for web3_client_version in k6/src/scenarios/test/index.js is referencing a file that doesn't exist:

import * as web3_client_version from './web3_client_version.js';

It appears this import was missed when the web3_client_version module was removed from the codebase.

Proposed Solution

Either:

  1. Create the missing web3_client_version.js file in the appropriate location, or
  2. Remove the import statement from k6/src/scenarios/test/index.js if the module is no longer needed

Steps to Reproduce

  1. Run npm run k6 from the project root

Metadata

Metadata

Assignees

Labels

internalFor changes that affect the project's internal workings but not its outward-facing functionality.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions