From 86db5cae29331b1f99c283ed04f2c412f4c2436f Mon Sep 17 00:00:00 2001 From: K0nnyaku Date: Tue, 10 Dec 2024 21:53:24 +0800 Subject: [PATCH] fix: test-org --- Cargo.lock | 2 +- tests/organization.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 77daefd..becf7f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -71,7 +71,7 @@ dependencies = [ [[package]] name = "algohub-server" -version = "0.1.15" +version = "0.1.16" dependencies = [ "anyhow", "chrono", diff --git a/tests/organization.rs b/tests/organization.rs index 1bfd137..82a2a77 100644 --- a/tests/organization.rs +++ b/tests/organization.rs @@ -70,7 +70,7 @@ async fn test_organization() -> Result<()> { println!("Created organization: {}", data.id); let response = client - .post(format!("/org/delete/{}", id)) + .post(format!("/org/delete/{}", data.id)) .json(&Credentials { id: &id, token: &token, @@ -80,7 +80,7 @@ async fn test_organization() -> Result<()> { response.into_json::>().await.unwrap(); - assert!(!Path::new("content").join(id.clone()).exists()); + assert!(!Path::new("content").join(data.id.clone()).exists()); client .post(format!("/account/delete/{}", id))