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

Test with AVA 6 #3282

Merged
merged 3 commits into from Jan 11, 2024
Merged

Test with AVA 6 #3282

merged 3 commits into from Jan 11, 2024

Conversation

novemberborn
Copy link
Member

  • Ensure watcher tests exit cleanly
  • Test with AVA 6

@novemberborn
Copy link
Member Author

Ironically, in CI the watch mode tests fail to exit cleanly. It's fine locally. This will need #3279 to be resolved and available through the @ava/test wrapper.

@novemberborn novemberborn marked this pull request as draft December 30, 2023 21:17
@novemberborn novemberborn force-pushed the test-with-ava6 branch 2 times, most recently from 8fbafd3 to 9bfb21b Compare December 31, 2023 22:20
@novemberborn
Copy link
Member Author

Ironically, in CI the watch mode tests fail to exit cleanly. It's fine locally.

Turns out this is due to a bug on Linux with our test for recursive watch support leaking referenced file handles.

Always await the last pending state when the watch runs have completed.

Use a teardown hook to ensure the watcher is aborted and has exited before ending the test.

Ensure the item is always an object, even if it didn't come from the generator.
Otherwise, on Linux, it seems the abort signal is disregarded.
@novemberborn novemberborn marked this pull request as ready for review January 11, 2024 20:47
@novemberborn novemberborn merged commit fde8671 into main Jan 11, 2024
16 checks passed
@novemberborn novemberborn deleted the test-with-ava6 branch January 11, 2024 20:56
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.

None yet

1 participant