fastify / fastify-caching

A Fastify plugin to facilitate working with cache headers
MIT License
204 stars 26 forks source link

test: prepare plugin for fastify 4.x #84

Closed darkgl0w closed 2 years ago

darkgl0w commented 2 years ago

Hello. This PR aims to :

Checklist

darkgl0w commented 2 years ago

Hmmmm GitHub CI Windows runners failure 🤔 Should not be related to the PR IMO: cf. this commit CI run

mcollina commented 2 years ago

CI is failing :(

darkgl0w commented 2 years ago

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 ^^

darkgl0w commented 2 years ago

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.

darkgl0w commented 2 years ago

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

Eomm commented 2 years ago

@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?

darkgl0w commented 2 years ago

@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 !_!