Skip to content

Commit

Permalink
fix: fix oversight in ingestion pipeline tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Jun 28, 2024
1 parent 1ebbc2f commit 5e8da00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions swiftide/src/ingestion/ingestion_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@ mod tests {
let transformer = |node: IngestionNode| {
let mut node = node;
node.chunk = "transformed".to_string();
node.id = Some(1);
Ok(node)
};
let storage = MemoryStorage::default();
Expand All @@ -489,7 +488,7 @@ mod tests {
pipeline.run().await.unwrap();

dbg!(storage.clone());
let processed_node = storage.get("1").await.unwrap();
let processed_node = storage.get("0").await.unwrap();
assert_eq!(processed_node.chunk, "transformed");
}

Expand All @@ -516,7 +515,7 @@ mod tests {
pipeline.run().await.unwrap();

dbg!(storage.clone());
let processed_node = storage.get("1").await.unwrap();
let processed_node = storage.get("0").await.unwrap();
assert_eq!(processed_node.chunk, "transformed");
}
}

0 comments on commit 5e8da00

Please sign in to comment.