We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cefa6b commit 6974e26Copy full SHA for 6974e26
test/test-utils.ts
@@ -132,8 +132,10 @@ export async function ignoreNetworkError<T extends RequestPromise | Promise<Resp
132
}
133
});
134
135
- if ((result as any).status === 502) {
136
- console.warn('Skipping test due to remote 502 response');
+ const status = (result as any).status;
+
137
+ if (status === 502 || status === 503) {
138
+ console.warn(`Skipping test due to remote ${status} response`);
139
throw options.context.skip();
140
141
0 commit comments