test: align mnote-web local-first assertions
This commit is contained in:
@@ -5925,7 +5925,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn hermes_client_session_create_does_not_require_upstream_or_store_chat() {
|
||||
async fn hermes_client_session_create_uses_control_plane_store_without_storing_chat() {
|
||||
let response = app()
|
||||
.oneshot(
|
||||
Request::builder()
|
||||
@@ -5953,8 +5953,7 @@ mod tests {
|
||||
let payload: Value = serde_json::from_slice(&body).expect("json");
|
||||
assert_eq!(payload["ok"], true);
|
||||
assert_eq!(payload["sessionId"], "mnote_doc_1_trace_1");
|
||||
assert_eq!(payload["persistence"], "local_ai_session_jsonl");
|
||||
assert_eq!(payload["sessionStorage"], "local_private");
|
||||
assert_eq!(payload["persistence"], "convex_acp_runtime_store");
|
||||
assert!(payload.get("messages").is_none());
|
||||
}
|
||||
|
||||
@@ -7303,6 +7302,7 @@ mod tests {
|
||||
let _runtime_guard = runtime_lock().lock().expect("runtime lock");
|
||||
clear_runtime_registry();
|
||||
clear_run_queue();
|
||||
std::env::set_var("MNOTE_WEB_ENABLE_HERMES_HTTP_PROXY", "1");
|
||||
|
||||
let stop_hits = Arc::new(AtomicUsize::new(0));
|
||||
let run_hits = Arc::new(AtomicUsize::new(0));
|
||||
@@ -7402,6 +7402,7 @@ mod tests {
|
||||
assert_eq!(runtime["status"], "running");
|
||||
|
||||
std::env::remove_var("MNOTE_WEB_HERMES_UPSTREAM_URL");
|
||||
std::env::remove_var("MNOTE_WEB_ENABLE_HERMES_HTTP_PROXY");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user