Closed darkgl0w closed 2 years ago
Hmmmm GitHub CI Windows runners failure 🤔 Should not be related to the PR IMO: cf. this commit CI run
CI is failing :(
CI is failing :(
Can you manually trigger a CI re-run please ? I suspect this to be a problem on GitHub CI Windows runner side, If it fails again I will try to see what is triggering this issue ^^
It seems that there is a flacky test when running in the Windows environment. cf. https://github.com/fastify/fastify-caching/runs/4376801490?check_suite_focus=true and https://github.com/fastify/fastify-caching/runs/4376801490?check_suite_focus=true :thinking:
I need to go, but I will try to look at this later today or tomorrow.
OK it seems good now (I hope :smile_cat:), I ended up rewriting the tests (I swapped http.get
calls with fastify.inject
and I have gone async/await
syntax), let me know if I need to change or revert anything. :stuck_out_tongue:
I have triggered a few CI run cycles and it seems to be OK so :crossed_fingers:. For reference https://github.com/darkgl0w/fastify-caching/actions
@darkgl0w the merge into master has some issue 😞
test count(2) != plan(3)
https://github.com/fastify/fastify-caching/actions/runs/1541922678
Could you take a look?
@Eomm > It seems that the root cause of the test flackyness is still there in Windows environments. I will take a look tomorrow morning.
Edit: PR sent thanks to GitHub.dev vscode !_!
Hello. This PR aims to :
preParsing
hooks withonRequest
hooks inside tests (https://github.com/fastify/fastify/issues/3503)http.get
calls withfastify.inject
,async/await
... )Checklist
npm run test
andnpm run benchmark
and/or benchmarksare included