Skip to content

Commit f778053

Browse files
committed
test(prover): allow CI load for REST solver proof
Signed-off-by: Johnny Greco <[email protected]>
1 parent 5797c58 commit f778053

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎crates/openshell-prover/src/containment.rs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,9 +2528,12 @@ mod tests {
25282528
let broader_method = parse(
25292529
"version: 1\nnetwork_policies:\n n:\n endpoints:\n - host: api.example.com\n port: 443\n protocol: rest\n enforcement: enforce\n rules: [{ allow: { method: POST, path: '/repos/NVIDIA/**' } }]\n binaries: [{ path: /usr/bin/curl }]\n",
25302530
);
2531-
let result = check_within_boundary(&boundary, &narrower, options());
2531+
let options = CheckOptions {
2532+
timeout: Duration::from_secs(30),
2533+
};
2534+
let result = check_within_boundary(&boundary, &narrower, options);
25322535
assert!(matches!(result, CheckResult::Within(_)), "{result:?}");
2533-
let result = check_within_boundary(&boundary, &broader_method, options());
2536+
let result = check_within_boundary(&boundary, &broader_method, options);
25342537
assert!(matches!(result, CheckResult::Exceeds(_)), "{result:?}");
25352538
}
25362539

0 commit comments

Comments
 (0)