updated test and fixed rpc error

This commit is contained in:
Maxime Van Hees
2025-10-20 13:11:44 +02:00
parent 483ccb2ba8
commit 45d8e306fb
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@
debug/
target/
.vscode/
test_images/
# These are backup files generated by rustfmt
**/*.rs.bk

View File

@@ -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")]

View File

@@ -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)
}