Skip to content

Commit 3accb7a

Browse files
committed
bump runtime limits due to slow github actions workers
1 parent b852ee0 commit 3accb7a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

biscuit-auth/src/token/authorizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ mod tests {
10931093
)
10941094
.unwrap()
10951095
.limits(AuthorizerLimits {
1096-
max_time: Duration::from_millis(10), //Set 10 milliseconds as the maximum time allowed for the authorization due to "cheap" worker on GitHub Actions
1096+
max_time: Duration::from_secs(10), //Set 10 seconds as the maximum time allowed for the authorization due to "cheap" worker on GitHub Actions
10971097
..Default::default()
10981098
})
10991099
.build(&biscuit2)

biscuit-auth/src/token/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,10 @@ mod tests {
13841384
.check("check if bytes($0), { hex:00000000, hex:0102AB }.contains($0)")
13851385
.unwrap()
13861386
.allow_all()
1387+
.limits(AuthorizerLimits {
1388+
max_time: Duration::from_secs(10),
1389+
..Default::default()
1390+
})
13871391
.build(&biscuit2)
13881392
.unwrap();
13891393

0 commit comments

Comments
 (0)