Skip to content

Comments

Remove mock instant#630

Merged
dfaust merged 5 commits intonotify-rs:mainfrom
dfaust:remove-mock-instant
Oct 25, 2024
Merged

Remove mock instant#630
dfaust merged 5 commits intonotify-rs:mainfrom
dfaust:remove-mock-instant

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 force-pushed the remove-mock-instant branch from ebcd784 to 3bb640f Compare October 25, 2024 16:30
@dfaust dfaust merged commit 89b0cf8 into notify-rs:main Oct 25, 2024
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