()
| 88 | |
| 89 | #[tokio::test] |
| 90 | async fn check_fail_recursion() { |
| 91 | match init(serde_yaml::from_str(include_str!("../../configs/fail_recursion.json")).unwrap()) |
| 92 | .await |
| 93 | .err() |
| 94 | .unwrap() |
| 95 | { |
| 96 | ScriptError::UpstreamError(UpstreamError::HybridRecursion(_)) => {} |
| 97 | e => panic!("Not the right error type: {}", e), |
| 98 | }; |
| 99 | } |