Skip to content

Commit c331d42

Browse files
committed
Skip npm tests when unauthorized
1 parent 2e54edf commit c331d42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/socket-npm.test.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ for (const npmDir of ['npm9', 'npm10', 'npm11']) {
7676
if (
7777
e?.['stderr'].includes('typosquat') ||
7878
// Sometimes our token quota is exceeded.
79-
e?.['stderr'].includes('Too Many Requests')
79+
e?.['stderr'].includes('Too Many Requests') ||
80+
// Sometimes we're unauthorized.
81+
e?.['stderr'].includes('Unauthorized')
8082
) {
8183
resolve('OK')
8284
} else {

0 commit comments

Comments
 (0)