mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
Merge pull request #4406 from gitbutlerapp/upgrade-mock-instant-version
upgrade mock_instant version
This commit is contained in:
commit
8b96b2ec70
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -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"
|
||||
|
@ -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"] }
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user