Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

@joshaber
Copy link
Contributor

This is needed to support atom/atom#11280.

So it seems like these tests were always racing: we depended on loading the realpath before emitting change events. It’s just that we usually won that race. Now we use synchronous FS during tests to ensure we win the race.

I don’t love this. It means testing isn’t quite doing the same thing as the Real Version. But I also don’t want to make dramatic changes and make #624 more difficult to merge.

/cc @thedaniel to make sure I’m not being crazy here.

@thedaniel
Copy link
Contributor

I don't love it either, but maybe we can make a point to refactor it out after landing #624?

@joshaber
Copy link
Contributor Author

I haven't looked at #624 but I wouldn't be surprised if you already ran into this and hopefully fixed it.

@joshaber joshaber merged commit 8d6f57f into master Mar 28, 2016
@joshaber joshaber deleted the use-sync-fs-for-testing branch March 28, 2016 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants