Closed n0v1 closed 6 months ago
Can you also add Node 20 and 22 into Github workflow, and remove 16?
Can you also add Node 20 and 22 into Github workflow, and remove 16?
Done.
Thanks for merging. I noticed that tests sometimes still fail with No address added out of total 1 resolved
. I created pull request #378 to hopefully fix this. Sorry for the noise.
I thought some random test failures discussed in #375 might have been caused by the relatively old ava version, so I updated it to the latest version.
ava v4 removed test.cb, so I rewrote those tests to use promises and async/await.
After those changes tests sometimes still failed with
No address added out of total 1 resolved
. Probably because ava runs test files in parallel by default which could cause random port clashes. To solve this, this sets"concurrency": 1
which essentially disables running of tests in parallel processes (see ava options).If using util.promisify is preferred over manually creating promises for method calls, I'm happy to change this.