Skip to content

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

test(cron): assert tool error flag for unreadable policy

Steven Enamakelf76ce0547beb
diff --git a/tests/support/cron_policy_failure.rs b/tests/support/cron_policy_failure.rs
index d6a9f3d39a..eefade24cc 100644
--- a/tests/support/cron_policy_failure.rs
+++ b/tests/support/cron_policy_failure.rs
@@ -289,7 +289,7 @@ pub(super) async fn policy_reads_refuse_execution_without_consuming_a_slot(case:
queued.is_err(),
"queued Run now must refuse before enqueueing"
);
- assert!(!tool.success, "run tool must refuse an unreadable policy");
+ assert!(tool.is_error, "run tool must refuse an unreadable policy");
assert_eq!(
calls.load(Ordering::SeqCst),
0,