From 7304ac15d94ac4b939a2574b76754b71b0df3d92 Mon Sep 17 00:00:00 2001 From: RaymondCho Date: Thu, 15 Oct 2026 23:22:51 +0900 Subject: [PATCH] Tests use the README's example drive id instead of a real drive's Co-Authored-By: Claude Opus 5.5 --- src/address.rs | 18 +++++++++--------- src/session_tests.rs | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/address.rs b/src/address.rs index ba8f800..e0cc1be 100644 --- a/src/address.rs +++ b/src/address.rs @@ -70,26 +70,26 @@ mod tests { #[tokio::test] async fn the_mcp_panel_url_is_used_as_given() { assert_eq!( - endpoint("https://aindrive.ainetwork.ai/mcp/d/KQHGpl8hFXq8"), - Ok("https://aindrive.ainetwork.ai/mcp/d/KQHGpl8hFXq8".to_owned()) + endpoint("https://aindrive.ainetwork.ai/mcp/d/AbCdEf123456"), + Ok("https://aindrive.ainetwork.ai/mcp/d/AbCdEf123456".to_owned()) ); assert_eq!( - endpoint(" https://aindrive.ainetwork.ai/mcp/d/KQHGpl8hFXq8/ \n"), - Ok("https://aindrive.ainetwork.ai/mcp/d/KQHGpl8hFXq8".to_owned()) + endpoint(" https://aindrive.ainetwork.ai/mcp/d/AbCdEf123456/ \n"), + Ok("https://aindrive.ainetwork.ai/mcp/d/AbCdEf123456".to_owned()) ); } #[tokio::test] async fn a_drive_page_address_finds_the_same_endpoint() { for page in [ - "https://aindrive.ainetwork.ai/d/KQHGpl8hFXq8", - "https://aindrive.ainetwork.ai/d/KQHGpl8hFXq8?path=notes", - "https://aindrive.ainetwork.ai/d/KQHGpl8hFXq8/notes/today.md", - "https://aindrive.ainetwork.ai/d/KQHGpl8hFXq8/manage#members", + "https://aindrive.ainetwork.ai/d/AbCdEf123456", + "https://aindrive.ainetwork.ai/d/AbCdEf123456?path=notes", + "https://aindrive.ainetwork.ai/d/AbCdEf123456/notes/today.md", + "https://aindrive.ainetwork.ai/d/AbCdEf123456/manage#members", ] { assert_eq!( endpoint(page), - Ok("https://aindrive.ainetwork.ai/mcp/d/KQHGpl8hFXq8".to_owned()), + Ok("https://aindrive.ainetwork.ai/mcp/d/AbCdEf123456".to_owned()), "{page}" ); } diff --git a/src/session_tests.rs b/src/session_tests.rs index d6a0635..59ea495 100644 --- a/src/session_tests.rs +++ b/src/session_tests.rs @@ -8,13 +8,13 @@ use crate::sdk::{ }; use std::collections::BTreeMap; -const ENDPOINT: &str = "https://aindrive.ainetwork.ai/mcp/d/KQHGpl8hFXq8"; +const ENDPOINT: &str = "https://aindrive.ainetwork.ai/mcp/d/AbCdEf123456"; fn config() -> Vec<(String, Setting)> { vec![ ( "url".to_owned(), - Setting::Text("https://aindrive.ainetwork.ai/d/KQHGpl8hFXq8".to_owned()), + Setting::Text("https://aindrive.ainetwork.ai/d/AbCdEf123456".to_owned()), ), ( "token".to_owned(), -- 2.52.0