Skip to content

Commit 8bcab26

Browse files
committed
Fix flaky tests
1 parent ef6edf3 commit 8bcab26

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,11 +1123,11 @@ pub struct ClientStats {
11231123

11241124
/// Storage space used by the database in bytes, excluding unused space claimed by LMDB
11251125
pub used_database_size: usize,
1126-
1126+
11271127
/// When the last update was made to the database in the `RFC 3339` format
11281128
#[serde(with = "time::serde::rfc3339::option")]
11291129
pub last_update: Option<OffsetDateTime>,
1130-
1130+
11311131
/// The statistics for each index found in the database
11321132
pub indexes: HashMap<String, IndexStats>,
11331133
}

src/indexes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ impl<Http: HttpClient> Index<Http> {
299299
/// }
300300
/// # tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(async {
301301
/// # let client = Client::new(MEILISEARCH_URL, Some(MEILISEARCH_API_KEY)).unwrap();
302-
/// let movies = client.index("execute_query");
302+
/// let movies = client.index("execute_query2");
303303
///
304304
/// // add some documents
305305
/// # movies.add_or_replace(&[Movie{name:String::from("Interstellar"), genre:String::from("scifi")},Movie{name:String::from("Inception"), genre:String::from("drama")}], Some("name")).await.unwrap().wait_for_completion(&client, None, None).await.unwrap();

src/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ pub struct MultiSearchResponse<T> {
765765
/// }
766766
/// # tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(async {
767767
/// # let client = Client::new(MEILISEARCH_URL, Some(MEILISEARCH_API_KEY)).unwrap();
768-
/// let movies = client.index("execute_query");
768+
/// let movies = client.index("execute_query3");
769769
///
770770
/// // add some documents
771771
/// # movies.add_or_replace(&[Movie{name:String::from("Interstellar"), genre:String::from("scifi")},Movie{name:String::from("Inception"), genre:String::from("drama")}], Some("name")).await.unwrap().wait_for_completion(&client, None, None).await.unwrap();

0 commit comments

Comments
 (0)