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: fix "too many files" config import test on some file systems #788

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

EvanHahn
Copy link
Contributor

Our "too many files" config import test fails on case-insensitive file systems, such as macOS by default.

Our fixture folder had a bunch of files that would get removed on these file systems. For example, one of 0a and 0A would get removed. That meant that there were fewer than 10,001 files (as expected), and the test would fail.

We could fix this by renaming the files, but I chose to fix this by re-creating the fixture each time we run the test. That avoids creating a folder with 10,001 files inside, and prevents you from having to run npm run test:buildConfigs.

@EvanHahn EvanHahn requested a review from tomasciccola August 27, 2024 21:01
@EvanHahn EvanHahn force-pushed the fix-toomanyfiles-config-import-test branch from 8179dad to 7706759 Compare August 27, 2024 21:03
Our "too many files" config import test fails on case-insensitive file
systems, such as macOS by default.

Our fixture folder had a bunch of files that would get removed on these
file systems. For example, one of `0a` and `0A` would get removed. That
meant that there were fewer than 10,001 files (as expected), and the
test would fail.

We could fix this by renaming the files, but I chose to fix this by
re-creating the fixture each time we run the test. That avoids creating
a folder with 10,001 files inside, and prevents you from having to run
`npm run test:buildConfigs`.
@EvanHahn EvanHahn force-pushed the fix-toomanyfiles-config-import-test branch from 7706759 to 92e417f Compare August 27, 2024 21:04
@tomasciccola tomasciccola merged commit 4182e9f into main Aug 28, 2024
7 checks passed
@tomasciccola tomasciccola deleted the fix-toomanyfiles-config-import-test branch August 28, 2024 13:32
EvanHahn added a commit that referenced this pull request Aug 28, 2024
)

Our "too many files" config import test fails on case-insensitive file
systems, such as macOS by default.

Our fixture folder had a bunch of files that would get removed on these
file systems. For example, one of `0a` and `0A` would get removed. That
meant that there were fewer than 10,001 files (as expected), and the
test would fail.

We could fix this by renaming the files, but I chose to fix this by
re-creating the fixture each time we run the test. That avoids creating
a folder with 10,001 files inside, and prevents you from having to run
`npm run test:buildConfigs`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants