diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-07-06 00:36:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 18:36:43 +0200 |
commit | 407de8b8347bae165e60b9ccf0bce8050ba861fa (patch) | |
tree | 39d5c072d6a58923fa721b7aa297fcae9209a4d4 /runtime/js/40_testing.js | |
parent | 0a33cc1951940ebf862361106635ff1bb39d852b (diff) |
fix(runtime): ignored tests should not cause permission changes (#11278)
Diffstat (limited to 'runtime/js/40_testing.js')
-rw-r--r-- | runtime/js/40_testing.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/js/40_testing.js b/runtime/js/40_testing.js index 3107f70a1..0106f895a 100644 --- a/runtime/js/40_testing.js +++ b/runtime/js/40_testing.js @@ -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"; |