Skip to content

Commit 1c23533

Browse files
committed
fix: test
1 parent c6a0e74 commit 1c23533

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/ParseGraphQLServer.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const { ParseGraphQLServer } = require('../lib/GraphQL/ParseGraphQLServer');
3636
const { ReadPreference, Collection } = require('mongodb');
3737
const { v4: uuidv4 } = require('uuid');
3838

39+
const testAgent = new http.Agent();
40+
3941
function handleError(e) {
4042
if (e && e.networkError && e.networkError.result && e.networkError.result.errors) {
4143
fail(e.networkError.result.errors);
@@ -6872,6 +6874,7 @@ describe('ParseGraphQLServer', () => {
68726874
method: 'POST',
68736875
headers,
68746876
body,
6877+
agent: testAgent,
68756878
});
68766879

68776880
expect(res.status).toEqual(200);
@@ -9335,6 +9338,7 @@ describe('ParseGraphQLServer', () => {
93359338
method: 'POST',
93369339
headers,
93379340
body,
9341+
agent: testAgent,
93389342
});
93399343

93409344
expect(res.status).toEqual(200);
@@ -9447,6 +9451,7 @@ describe('ParseGraphQLServer', () => {
94479451
method: 'POST',
94489452
headers,
94499453
body: body2,
9454+
agent: testAgent,
94509455
});
94519456
expect(res.status).toEqual(200);
94529457
const result2 = JSON.parse(await res.text());
@@ -9639,6 +9644,7 @@ describe('ParseGraphQLServer', () => {
96399644
method: 'POST',
96409645
headers,
96419646
body,
9647+
agent: testAgent,
96429648
});
96439649
expect(res.status).toEqual(200);
96449650
const result = await res.json();
@@ -9692,6 +9698,7 @@ describe('ParseGraphQLServer', () => {
96929698
method: 'POST',
96939699
headers,
96949700
body,
9701+
agent: testAgent,
96959702
});
96969703

96979704
const result = JSON.parse(await res.text());

0 commit comments

Comments
 (0)