Closed PatrickLevy closed 1 year ago
Thank you for reporting, do you have xk6 version used in the build ?, so I can reproduce your issue.
It's probably due to an update in the xk6 code base not yet taken into account it this extension, I'll try with latest xk6.
Best
I reproduced the issue, I could fix the code but unfortunately no the tests yet, I'll provide the fix soon. I have a quick fix which is to temporary comment tests, I'll do this if I can't find a better way in the coming days.
Ok, thanks for confirmation! It looks like a work-around is to build with version v0.40.0 or older of k6. I apologize I didn't outline this earlier, I thought I had tried building with older versions but I think I was specifying the version number incorrectly so it was failing for a different reason.
This all seems to confirm that the breaking changes introduced here are causing the problems.
Works:
xk6 build v0.40.0 --with github.com/pmalhaire/xk6-mqtt@latest
Fails
xk6 build v0.41.0 --with github.com/pmalhaire/xk6-mqtt@latest
It should be fixed and work with latest k6 version (the bad way for now)
@PatrickLevy is it fixed for you as well ? I'll reopen if it's not
Description First of all, thank you for this extension! I have been using it for a little while and it has worked wonderfully. Just recently xk6 has started failing to build when I include this extension.
Steps to reproduce:
Example output