Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize tests #377

Merged
merged 12 commits into from
May 15, 2024
Merged

Modernize tests #377

merged 12 commits into from
May 15, 2024

Conversation

n0v1
Copy link
Contributor

@n0v1 n0v1 commented May 14, 2024

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.

@anonrig
Copy link
Member

anonrig commented May 14, 2024

Can you also add Node 20 and 22 into Github workflow, and remove 16?

@coveralls
Copy link

Coverage Status

coverage: 98.243%. remained the same
when pulling 74379d9 on n0v1:modernize-tests
into 3859690 on malijs:master.

@n0v1
Copy link
Contributor Author

n0v1 commented May 15, 2024

Can you also add Node 20 and 22 into Github workflow, and remove 16?

Done.

@anonrig anonrig merged commit 78aa237 into malijs:master May 15, 2024
0 of 3 checks passed
@n0v1 n0v1 changed the title Modernize tests Stabilize and modernize tests May 15, 2024
@n0v1 n0v1 changed the title Stabilize and modernize tests Modernize tests May 15, 2024
@n0v1 n0v1 mentioned this pull request May 15, 2024
@n0v1
Copy link
Contributor Author

n0v1 commented May 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants