From 57d066595b47d47669b626c5040a77c7b458b1f4 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 6 Jun 2024 17:24:50 +0200 Subject: [PATCH 1/2] fix Tests almost all features --- meilisearch/tests/search/mod.rs | 2 +- milli/src/search/new/tests/stop_words.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meilisearch/tests/search/mod.rs b/meilisearch/tests/search/mod.rs index b65c0dc42..e80c5144d 100644 --- a/meilisearch/tests/search/mod.rs +++ b/meilisearch/tests/search/mod.rs @@ -301,7 +301,7 @@ async fn negative_special_cases_search() { index.add_documents(documents, None).await; index.wait_task(0).await; - index.update_settings(json!({"synonyms": { "escape": ["glass"] }})).await; + index.update_settings(json!({"synonyms": { "escape": ["gläss"] }})).await; index.wait_task(1).await; // There is a synonym for escape -> glass but we don't want "escape", only the derivates: glass diff --git a/milli/src/search/new/tests/stop_words.rs b/milli/src/search/new/tests/stop_words.rs index 629751b48..dc1e45fce 100644 --- a/milli/src/search/new/tests/stop_words.rs +++ b/milli/src/search/new/tests/stop_words.rs @@ -13,7 +13,7 @@ use std::collections::BTreeSet; use std::iter::FromIterator; use crate::index::tests::TempIndex; -use crate::{db_snap, Search, SearchResult, TermsMatchingStrategy}; +use crate::{Search, SearchResult, TermsMatchingStrategy}; fn create_index() -> TempIndex { let index = TempIndex::new(); @@ -66,9 +66,10 @@ fn create_index() -> TempIndex { } #[test] +#[cfg(not(feature = "swedish-recomposition"))] fn test_stop_words_not_indexed() { let index = create_index(); - db_snap!(index, word_docids, @"6288f9d7db3703b02c57025eb4a69264"); + crate::db_snap!(index, word_docids, @"6288f9d7db3703b02c57025eb4a69264"); } #[test] From 304a9df52da8ef0641f1b1fc8d713264725f9929 Mon Sep 17 00:00:00 2001 From: Many the fish Date: Wed, 12 Jun 2024 07:22:24 +0200 Subject: [PATCH 2/2] Remove `-v` parameter --- .github/workflows/test-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 5dbde4301..84a82250e 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -116,7 +116,7 @@ jobs: override: true - name: Run cargo tree without default features and check lindera is not present run: | - if cargo tree -f '{p} {f}' -e normal --no-default-features | grep -vqz lindera; then + if cargo tree -f '{p} {f}' -e normal --no-default-features | grep -qz lindera; then echo "lindera has been found in the sources and it shouldn't" exit 1 fi