mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
Merge #2476
2476: fix(test): Windows index pagination test r=ManyTheFish a=ManyTheFish The test `index::get_index::get_and_paginate_indexes` fails on every PRs during `Tests on windows-latest` CI job. - reduce the default index size in tests. - wait for each task instead of waiting for the last one at the end. Co-authored-by: ManyTheFish <many@meilisearch.com>
This commit is contained in:
commit
72be296852
@ -150,8 +150,8 @@ pub fn default_settings(dir: impl AsRef<Path>) -> Opt {
|
||||
env: "development".to_owned(),
|
||||
#[cfg(all(not(debug_assertions), feature = "analytics"))]
|
||||
no_analytics: true,
|
||||
max_index_size: Byte::from_unit(4.0, ByteUnit::GiB).unwrap(),
|
||||
max_task_db_size: Byte::from_unit(4.0, ByteUnit::GiB).unwrap(),
|
||||
max_index_size: Byte::from_unit(100.0, ByteUnit::MiB).unwrap(),
|
||||
max_task_db_size: Byte::from_unit(1.0, ByteUnit::GiB).unwrap(),
|
||||
http_payload_size_limit: Byte::from_unit(10.0, ByteUnit::MiB).unwrap(),
|
||||
snapshot_dir: ".".into(),
|
||||
indexer_options: IndexerOpts {
|
||||
|
@ -77,13 +77,12 @@ async fn get_and_paginate_indexes() {
|
||||
const NB_INDEXES: usize = 50;
|
||||
for i in 0..NB_INDEXES {
|
||||
server.index(&format!("test_{i:02}")).create(None).await;
|
||||
server
|
||||
.index(&format!("test_{i:02}"))
|
||||
.wait_task(i as u64)
|
||||
.await;
|
||||
}
|
||||
|
||||
server
|
||||
.index(&format!("test_{NB_INDEXES}"))
|
||||
.wait_task(NB_INDEXES as u64 - 1)
|
||||
.await;
|
||||
|
||||
// basic
|
||||
let (response, code) = server.list_indexes(None, None).await;
|
||||
assert_eq!(code, 200);
|
||||
|
Loading…
x
Reference in New Issue
Block a user