From 8f0fd353581c8878984cea54982e1e67a1a3a7d5 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Wed, 21 Sep 2022 13:29:38 +0200 Subject: [PATCH] add insta::json for later --- Cargo.lock | 1 + index-scheduler/Cargo.toml | 2 +- index-scheduler/src/index_scheduler.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 3a6937ced..cb51300ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1833,6 +1833,7 @@ dependencies = [ "console", "lazy_static", "linked-hash-map", + "serde", "similar", "yaml-rust", ] diff --git a/index-scheduler/Cargo.toml b/index-scheduler/Cargo.toml index 10d152f60..baef2e6ca 100644 --- a/index-scheduler/Cargo.toml +++ b/index-scheduler/Cargo.toml @@ -25,5 +25,5 @@ synchronoise = "1.0.1" [dev-dependencies] nelson = { git = "https://github.com/meilisearch/nelson.git", rev = "675f13885548fb415ead8fbb447e9e6d9314000a"} -insta = "1.19.1" +insta = { version = "1.19.1", features = ["json"] } big_s = "1.0.2" diff --git a/index-scheduler/src/index_scheduler.rs b/index-scheduler/src/index_scheduler.rs index a332397ff..9c7f7838f 100644 --- a/index-scheduler/src/index_scheduler.rs +++ b/index-scheduler/src/index_scheduler.rs @@ -284,6 +284,7 @@ impl IndexScheduler { #[cfg(test)] mod tests { use big_s::S; + use insta::*; use uuid::Uuid; use crate::{assert_smol_debug_snapshot, tests::index_scheduler};