From 45d8e306fb53377b8e591a92eeb3dd6007f611d5 Mon Sep 17 00:00:00 2001 From: Maxime Van Hees Date: Mon, 20 Oct 2025 13:11:44 +0200 Subject: [PATCH] updated test and fixed rpc error --- .gitignore | 1 + src/rpc.rs | 2 +- tests/lance_integration_tests.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 40265d9..90ddd25 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ debug/ target/ .vscode/ +test_images/ # These are backup files generated by rustfmt **/*.rs.bk diff --git a/src/rpc.rs b/src/rpc.rs index 90d6d06..b8a1cf2 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -71,7 +71,7 @@ pub fn hash_key(key: &str) -> String { } /// RPC trait for HeroDB management -#[rpc(server, client, namespace = "herodb")] +#[rpc(server, client, namespace = "hero")] pub trait Rpc { /// Create a new database with specified configuration #[method(name = "createDatabase")] diff --git a/tests/lance_integration_tests.rs b/tests/lance_integration_tests.rs index 6bf2aab..fce7b1c 100644 --- a/tests/lance_integration_tests.rs +++ b/tests/lance_integration_tests.rs @@ -116,7 +116,7 @@ async fn setup_server() -> (ServerProcessGuard, u16) { // Give the server time to build and start (cargo run may compile first) // Increase significantly to accommodate first-time dependency compilation in CI. - std::thread::sleep(Duration::from_millis(60000)); + std::thread::sleep(Duration::from_millis(5000)); (guard, port) }