Skip to content

Commit

Permalink
fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
hermeGarcia committed Jan 23, 2024
1 parent ef18436 commit 2decd7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nucliadb_vectors/src/service/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,10 @@ mod tests {

let segments = writer.get_segment_ids().unwrap();
assert_eq!(segments.len(), 2);
let existing_segs: Vec<String> = Vec::new();
let index_files = writer.get_index_files(&existing_segs).unwrap();
let existing_secs: Vec<String> = Vec::new();
let Ok(IndexFiles::Other(index_files)) = writer.get_index_files(&existing_secs) else {
panic!("Expected another outcome");
};
let mut expected_files = Vec::new();
for segment in segments {
expected_files.push(format!("vectors/{}/index.hnsw", segment));
Expand Down

0 comments on commit 2decd7e

Please sign in to comment.