Skip to content

test: make fs watch test more stable#41715

Merged
nodejs-github-bot merged 1 commit intonodejs:masterfrom
benjamingr:test-fs-watch-non-recursive-stabilize
Jan 29, 2022
Merged

test: make fs watch test more stable#41715
nodejs-github-bot merged 1 commit intonodejs:masterfrom
benjamingr:test-fs-watch-non-recursive-stabilize

Conversation

@benjamingr
Copy link
Copy Markdown
Member

@benjamingr benjamingr commented Jan 27, 2022

The test currently uses a timeout to deal with a watch event for the directory being created.

This is flaky e.g. https://ci.nodejs.org/job/node-test-binary-windows-js-suites/RUN_SUBSET=2,nodes=win10-COMPILED_BY-vs2019/lastCompletedBuild/testReport/(root)/test/pummel_test_fs_watch_non_recursive_/

Instead this changes the common.mustNotCall to allow calls with testdirname so we do not depend on timing as much.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flaky-test Issues and PRs related to the tests with unstable failures on the CI. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants