Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(integration test): MongoDB #126

Merged
merged 15 commits into from
Dec 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add sleep
  • Loading branch information
marieaurore123 committed Dec 3, 2024
commit 7e56301678fa89adce5a010fb5bd50911b5be221
3 changes: 3 additions & 0 deletions rig-mongodb/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use testcontainers::{
runners::AsyncRunner,
GenericImage, ImageExt,
};
use tokio::time::{sleep, Duration};

#[derive(Embed, Clone, serde::Deserialize, serde::Serialize, Debug, PartialEq)]
struct Definition {
Expand Down Expand Up @@ -70,6 +71,8 @@ async fn vector_search_test() {
.await
.unwrap();

sleep(Duration::from_secs(5)).await;

// Query the index
let results = index
.top_n::<serde_json::Value>("What is a linglingdong?", 1)
Expand Down
Loading