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

Remove mock instant #630

Merged
merged 5 commits into from
Oct 25, 2024
Merged

Remove mock instant #630

merged 5 commits into from
Oct 25, 2024

Conversation

dfaust
Copy link
Member

@dfaust dfaust commented Aug 8, 2024

Fixes a couple of issues:

  • Fix notify-debouncer-full by removing mock_instant crate.
    Trying to use mock_instant across multiple crates was a bad idea. All functions requiring a clock were removed from the notify-types crate and custom time mocking functions were added.
  • The crossbeam feature was renamed to crossbeam-channel but that wasn't updated everywhere.
  • Add some basic integration tests.
    These tests are meant to just test if the watchers work at all, not all of their features. That was tried in previous versions of notify, but lead to very flaky tests.
  • Update change log.

The feature was previously renamed from `crossbeam` to `crossbeam-channel`.
Trying to use mock_instant across multiple crates was a bad idea. All functions requiring a clock were removed from the notify-types crate and custom time mocking functions were added.
@dfaust dfaust merged commit 89b0cf8 into notify-rs:main Oct 25, 2024
14 checks passed
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.

1 participant