Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(json_rpc_e2e): simplify empty cron list assertion

Steven Enamakelc35f5f6096e8
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 8cd38ee753..0bc6dca3ce 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -2583,10 +2583,9 @@ async fn json_rpc_cron_add_run_list_round_trip_over_the_tinyflows_module_inner()
// Nothing scheduled yet.
let empty = post_json_rpc(&rpc_base, 2, "openhuman.cron_list", json!({})).await;
assert!(
- assert_no_jsonrpc_error(&empty, "cron_list")
+ !assert_no_jsonrpc_error(&empty, "cron_list")
.to_string()
- .contains("\"job_type\"")
- == false,
+ .contains("\"job_type\""),
"a fresh workspace has no cron jobs"
);