fix: resolve critical namespace lock bug and improve test reliability

This commit is contained in:
安正超
2025-05-28 11:51:48 +08:00
parent 181e08cb8e
commit ecbd1e0bc3
2 changed files with 17 additions and 18 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ async fn test_lock_unlock_rpc() -> Result<(), Box<dyn Error>> {
async fn test_lock_unlock_ns_lock() -> Result<(), Box<dyn Error>> {
let url = url::Url::parse("http://127.0.0.1:9000/data")?;
let locker = new_lock_api(false, Some(url));
let ns_mutex = Arc::new(RwLock::new(NsLockMap::new(true)));
let ns_mutex = Arc::new(RwLock::new(NsLockMap::new(false)));
let ns = new_nslock(
Arc::clone(&ns_mutex),
"local".to_string(),