Merge pull request #4406 from gitbutlerapp/upgrade-mock-instant-version

upgrade mock_instant version
This commit is contained in:
Kiril Videlov 2024-07-16 15:59:38 +02:00 committed by GitHub
commit 8b96b2ec70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

4
Cargo.lock generated
View File

@ -4190,9 +4190,9 @@ dependencies = [
[[package]]
name = "mock_instant"
version = "0.3.2"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9366861eb2a2c436c20b12c8dbec5f798cea6b47ad99216be0282942e2c81ea0"
checksum = "cdcebb6db83796481097dedc7747809243cc81d9ed83e6a938b76d4ea0b249cf"
[[package]]
name = "native-tls"

View File

@ -19,7 +19,7 @@ file-id = "0.2.1"
walkdir = "2.2.2"
crossbeam-channel = "0.5.13"
mock_instant = { version = "0.3.2", optional = true }
mock_instant = { version = "0.5.1", optional = true }
[dev-dependencies]
gitbutler-notify-debouncer = { path = ".", features = ["mock_instant"] }

View File

@ -31,7 +31,7 @@
use std::ops::{Deref, DerefMut};
#[cfg(test)]
use mock_instant::Instant;
use mock_instant::thread_local::Instant;
#[cfg(not(test))]
use std::time::Instant;

View File

@ -59,7 +59,7 @@ use notify::{
use parking_lot::{MappedMutexGuard, Mutex, MutexGuard};
#[cfg(test)]
use mock_instant::Instant;
use mock_instant::thread_local::Instant;
#[cfg(not(test))]
use std::time::Instant;

View File

@ -29,11 +29,11 @@
// DEALINGS IN THE SOFTWARE.
use std::{path::Path, time::Duration};
use mock_instant::Instant;
use mock_instant::thread_local::Instant;
pub(crate) use schema::TestCase;
use mock_instant::MockClock;
use mock_instant::thread_local::MockClock;
use pretty_assertions::assert_eq;
use rstest::rstest;

View File

@ -29,7 +29,7 @@
// DEALINGS IN THE SOFTWARE.
use crate::{DebounceDataInner, DebouncedEvent};
use file_id::FileId;
use mock_instant::Instant;
use mock_instant::thread_local::Instant;
use notify::event::{
AccessKind, AccessMode, CreateKind, DataChange, Flag, MetadataKind, ModifyKind, RemoveKind,
RenameMode,