Skip to content

Commit c2b3439

Browse files
bors[bot]irevoire
andauthored
Merge #284
284: Remove an useless test. r=brunoocasali a=irevoire This test was duplicated for no reason. Co-authored-by: Irevoire <[email protected]>
2 parents 2efb5c7 + 201f07e commit c2b3439

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/client.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -950,16 +950,6 @@ mod tests {
950950
.any(|idx| idx["uid"] == json!(index.uid.to_string())));
951951
}
952952

953-
#[meilisearch_test]
954-
async fn test_fetch_info(mut index: Index) {
955-
let res = index.fetch_info().await;
956-
957-
assert!(res.is_ok());
958-
assert!(index.updated_at.is_some());
959-
assert!(index.created_at.is_some());
960-
assert!(index.primary_key.is_none());
961-
}
962-
963953
#[meilisearch_test]
964954
async fn test_get_primary_key_is_none(mut index: Index) {
965955
let primary_key = index.get_primary_key().await;

src/indexes.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,9 @@ mod tests {
10091009
async fn test_fetch_info(mut index: Index) {
10101010
let res = index.fetch_info().await;
10111011
assert!(res.is_ok());
1012+
assert!(index.updated_at.is_some());
1013+
assert!(index.created_at.is_some());
1014+
assert!(index.primary_key.is_none());
10121015
}
10131016

10141017
#[meilisearch_test]

0 commit comments

Comments
 (0)