mirror of
https://github.com/block/buzz.git
synced 2026-10-29 05:21:31 +00:00
test(agents): use platform Tauri invoke URL
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This commit is contained in:
@@ -272,7 +272,13 @@ fn readiness_command_is_registered_and_never_persists_its_draft() {
|
||||
cmd: "evaluate_agent_readiness_draft".into(),
|
||||
callback: tauri::ipc::CallbackFn(0),
|
||||
error: tauri::ipc::CallbackFn(1),
|
||||
url: "tauri://localhost".parse().expect("invoke url"),
|
||||
url: if cfg!(any(windows, target_os = "android")) {
|
||||
"http://tauri.localhost"
|
||||
} else {
|
||||
"tauri://localhost"
|
||||
}
|
||||
.parse()
|
||||
.expect("invoke url"),
|
||||
body: tauri::ipc::InvokeBody::Json(serde_json::json!({
|
||||
"draft": {
|
||||
"kind": "existing",
|
||||
|
||||
Reference in New Issue
Block a user