-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Labels
internalFor changes that affect the project's internal workings but not its outward-facing functionality.For changes that affect the project's internal workings but not its outward-facing functionality.
Milestone
Description
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:
- Create the missing
web3_client_version.jsfile in the appropriate location, or - Remove the import statement from
k6/src/scenarios/test/index.jsif the module is no longer needed
Steps to Reproduce
- Run
npm run k6from the project root
Metadata
Metadata
Assignees
Labels
internalFor changes that affect the project's internal workings but not its outward-facing functionality.For changes that affect the project's internal workings but not its outward-facing functionality.