refactor: remove cycle checking becuase API prevents cycles

This commit is contained in:
swaits committed 2025-10-08 14:28:54 -06:00
1 parent 683579a18b
commit 802e584646
11 files changed
+543 -75

No files matched your search

+8 -2
View File
@@ -168,10 +168,16 @@ async fn test_concurrent_run_protection() {
// The error should be about concurrent execution
if result1.is_err() {
assert!(matches!(result1.unwrap_err(), crate::error::DagError::CycleDetected { ref description, .. } if description.contains("already running")));
assert!(matches!(
result1.unwrap_err(),
crate::error::DagError::ConcurrentExecution
));
}
if result2.is_err() {
assert!(matches!(result2.unwrap_err(), crate::error::DagError::CycleDetected { ref description, .. } if description.contains("already running")));
assert!(matches!(
result2.unwrap_err(),
crate::error::DagError::ConcurrentExecution
));
}
}