Skip to content

Commit

Permalink
bump runtime limits due to slow github actions workers
Browse files Browse the repository at this point in the history
  • Loading branch information
divarvel committed Nov 29, 2024
1 parent b852ee0 commit 3accb7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion biscuit-auth/src/token/authorizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ mod tests {
)
.unwrap()
.limits(AuthorizerLimits {
max_time: Duration::from_millis(10), //Set 10 milliseconds as the maximum time allowed for the authorization due to "cheap" worker on GitHub Actions
max_time: Duration::from_secs(10), //Set 10 seconds as the maximum time allowed for the authorization due to "cheap" worker on GitHub Actions
..Default::default()
})
.build(&biscuit2)
Expand Down
4 changes: 4 additions & 0 deletions biscuit-auth/src/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,10 @@ mod tests {
.check("check if bytes($0), { hex:00000000, hex:0102AB }.contains($0)")
.unwrap()
.allow_all()
.limits(AuthorizerLimits {
max_time: Duration::from_secs(10),
..Default::default()
})
.build(&biscuit2)
.unwrap();

Expand Down

0 comments on commit 3accb7a

Please sign in to comment.