mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
fix(runtime): ignored tests should not cause permission changes (#11278)
This commit is contained in:
parent
0a33cc1951
commit
407de8b834
4 changed files with 32 additions and 5 deletions
|
@ -192,17 +192,16 @@ finishing test case.`;
|
|||
}
|
||||
|
||||
async function runTest({ ignore, fn, permissions }) {
|
||||
if (ignore) {
|
||||
return "ignored";
|
||||
}
|
||||
|
||||
let token = null;
|
||||
|
||||
try {
|
||||
if (permissions) {
|
||||
token = pledgeTestPermissions(permissions);
|
||||
}
|
||||
|
||||
if (ignore) {
|
||||
return "ignored";
|
||||
}
|
||||
|
||||
await fn();
|
||||
|
||||
return "ok";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue