updated test and fixed rpc error
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
||||
debug/
|
||||
target/
|
||||
.vscode/
|
||||
test_images/
|
||||
|
||||
# These are backup files generated by rustfmt
|
||||
**/*.rs.bk
|
||||
|
@@ -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")]
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user