mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-23 19:15:31 +08:00
Fix insta tests again
This commit is contained in:
parent
243a5fa6a8
commit
434fad5327
@ -2,6 +2,7 @@
|
|||||||
// It must test pretty much all the features of meilisearch because the other tests will only tests
|
// It must test pretty much all the features of meilisearch because the other tests will only tests
|
||||||
// the new features they introduced.
|
// the new features they introduced.
|
||||||
|
|
||||||
|
use insta::assert_json_snapshot;
|
||||||
use manifest_dir_macros::exist_relative_path;
|
use manifest_dir_macros::exist_relative_path;
|
||||||
use meili_snap::{json_string, snapshot};
|
use meili_snap::{json_string, snapshot};
|
||||||
use meilisearch::Opt;
|
use meilisearch::Opt;
|
||||||
@ -126,10 +127,14 @@ async fn check_the_index_scheduler(server: &Server) {
|
|||||||
"#);
|
"#);
|
||||||
// And their metadata are still right
|
// And their metadata are still right
|
||||||
let (stats, _) = server.stats().await;
|
let (stats, _) = server.stats().await;
|
||||||
snapshot!(stats, @r###"
|
assert_json_snapshot!(stats, {
|
||||||
|
".databaseSize" => "[bytes]",
|
||||||
|
".usedDatabaseSize" => "[bytes]"
|
||||||
|
},
|
||||||
|
@r###"
|
||||||
{
|
{
|
||||||
"databaseSize": 438272,
|
"databaseSize": [bytes],
|
||||||
"usedDatabaseSize": 200704,
|
"usedDatabaseSize": [bytes],
|
||||||
"lastUpdate": "2025-01-23T11:36:22.634859166Z",
|
"lastUpdate": "2025-01-23T11:36:22.634859166Z",
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"kefir": {
|
"kefir": {
|
||||||
@ -208,10 +213,14 @@ async fn check_the_index_scheduler(server: &Server) {
|
|||||||
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterFinishedAt_equal_2025-01-16T16_47_41");
|
snapshot!(json_string!(batches, { ".results[0].duration" => "[duration]", ".results[0].enqueuedAt" => "[date]", ".results[0].startedAt" => "[date]", ".results[0].finishedAt" => "[date]", ".results[0].stats.callTrace" => "[callTrace]", ".results[0].stats.writeChannelCongestion" => "[writeChannelCongestion]" }), name: "batches_filter_afterFinishedAt_equal_2025-01-16T16_47_41");
|
||||||
|
|
||||||
let (stats, _) = server.stats().await;
|
let (stats, _) = server.stats().await;
|
||||||
snapshot!(stats, @r###"
|
snapshot!(stats, {
|
||||||
|
".databaseSize" => "[bytes]",
|
||||||
|
".usedDatabaseSize" => "[bytes]"
|
||||||
|
},
|
||||||
|
@r###"
|
||||||
{
|
{
|
||||||
"databaseSize": 438272,
|
"databaseSize": [bytes],
|
||||||
"usedDatabaseSize": 200704,
|
"usedDatabaseSize": [bytes],
|
||||||
"lastUpdate": "2025-01-23T11:36:22.634859166Z",
|
"lastUpdate": "2025-01-23T11:36:22.634859166Z",
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"kefir": {
|
"kefir": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user