Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a00c0d2

Browse files
committed
test(client): remove faulty test
1 parent 786905e commit a00c0d2

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

test/client.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
22
import nock from 'nock';
3-
import CF, {HTTPError, RequestError, ParseError} from '../';
3+
import CF, {HTTPError, ParseError} from '../';
44

55
nock.disableNetConnect();
66

@@ -49,20 +49,6 @@ test('rejects on non-200', async t => {
4949
await t.throws(t.context.client._got('status/500'), HTTPError, 'Response code 500 (Internal Server Error)');
5050
});
5151

52-
test('rejects on socket timeout', async t => {
53-
nock('https://api.cloudflare.com')
54-
.get('/client/v4/status/500')
55-
.socketDelay(2)
56-
.reply(500, {
57-
error: 'Internal Server Error'
58-
});
59-
60-
await t.throws(t.context.client._got('status/500', {
61-
timeout: 1,
62-
retries: 0
63-
}), RequestError);
64-
});
65-
6652
test('rejects if JSON parse error', async t => {
6753
nock('https://api.cloudflare.com')
6854
.get('/client/v4/error')

0 commit comments

Comments
 (0)