mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 05:00:06 +01:00
Merge #4685
4685: Fix ci tests r=dureuill a=ManyTheFish # Pull Request Make the all following CI succeed: https://github.com/meilisearch/meilisearch/actions/runs/9477183091 ## Related issue Fixes #4629 ## What does this PR do? - Change the test behavior for `swedish-recomposition` feature flag - Remove the `-v` parameter from grep Co-authored-by: ManyTheFish <many@meilisearch.com> Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
commit
e0eff08095
2
.github/workflows/test-suite.yml
vendored
2
.github/workflows/test-suite.yml
vendored
@ -116,7 +116,7 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
- name: Run cargo tree without default features and check lindera is not present
|
- name: Run cargo tree without default features and check lindera is not present
|
||||||
run: |
|
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"
|
echo "lindera has been found in the sources and it shouldn't"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -301,7 +301,7 @@ async fn negative_special_cases_search() {
|
|||||||
index.add_documents(documents, None).await;
|
index.add_documents(documents, None).await;
|
||||||
index.wait_task(0).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;
|
index.wait_task(1).await;
|
||||||
|
|
||||||
// There is a synonym for escape -> glass but we don't want "escape", only the derivates: glass
|
// There is a synonym for escape -> glass but we don't want "escape", only the derivates: glass
|
||||||
|
@ -13,7 +13,7 @@ use std::collections::BTreeSet;
|
|||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
|
|
||||||
use crate::index::tests::TempIndex;
|
use crate::index::tests::TempIndex;
|
||||||
use crate::{db_snap, Search, SearchResult, TermsMatchingStrategy};
|
use crate::{Search, SearchResult, TermsMatchingStrategy};
|
||||||
|
|
||||||
fn create_index() -> TempIndex {
|
fn create_index() -> TempIndex {
|
||||||
let index = TempIndex::new();
|
let index = TempIndex::new();
|
||||||
@ -66,9 +66,10 @@ fn create_index() -> TempIndex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(feature = "swedish-recomposition"))]
|
||||||
fn test_stop_words_not_indexed() {
|
fn test_stop_words_not_indexed() {
|
||||||
let index = create_index();
|
let index = create_index();
|
||||||
db_snap!(index, word_docids, @"6288f9d7db3703b02c57025eb4a69264");
|
crate::db_snap!(index, word_docids, @"6288f9d7db3703b02c57025eb4a69264");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user