Hi guys,
We are using K6 for load-testing, but we stucked with a problem. If we import a module (like ‘jsonwebtoken’ or ‘jwk-to-pem’) into the js source file, then the test run will be killed by the running environment (after ~ 15 mins trying). Even if this is the only one thing what we put into the code.
Our guess is the generated js file is way too long and can not be properly processed - although it didn’t work with smaller splitted/chunked js files, so we aren’t sure. As far as we know it should have impact only on perfomance, but not being killed.
Do you have any idea what should we have to do?
How to replicate:
- clone the template project GitHub - grafana/k6-template-es6: Template repository for bundling test projects into single test scripts runnable by k6
- try to use jsonwebtoken in main.js (var jwt = require(‘jsonwebtoken’))
Thanks