Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Giotino committed Sep 11, 2020
1 parent 7949540 commit b581561
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/agent.ts
Expand Up @@ -54,7 +54,7 @@ test('non-object agent option works with https', withHttpsServer(), async (t, se
agent.destroy();
});

test('redirects from http to https work with an agent object', withServer, async (t, serverHttp, _got) => {
test('redirects from http to https work with an agent object', withServer, async (t, serverHttp) => {
await withHttpsServer()(t, async (t, serverHttps, got) => {
serverHttp.get('/', (_request, response) => {
response.end('http');
Expand Down Expand Up @@ -91,7 +91,7 @@ test('redirects from http to https work with an agent object', withServer, async
});

test('redirects from https to http work with an agent object', withHttpsServer(), async (t, serverHttps, got) => {
await withServer(t, async (t, serverHttp, _got) => {
await withServer(t, async (t, serverHttp) => {
serverHttp.get('/', (_request, response) => {
response.end('http');
});
Expand Down
2 changes: 1 addition & 1 deletion test/http.ts
Expand Up @@ -332,7 +332,7 @@ if (IPv6supported && process.env.TRAVIS_DIST !== 'focal') {
});
}

test('invalid dnsLookupIpVersion', withServer, async (t, server, got) => {
test('invalid `dnsLookupIpVersion`', withServer, async (t, server, got) => {
server.get('/ok', echoIp);

await t.throwsAsync(got('ok', {
Expand Down
4 changes: 2 additions & 2 deletions test/redirects.ts
Expand Up @@ -171,7 +171,7 @@ test('redirects on 303 response even on post, put, delete', withServer, async (t
t.is(body, 'reached');
});

test('redirects from http to https work', withServer, async (t, serverHttp, _got) => {
test('redirects from http to https work', withServer, async (t, serverHttp) => {
await withHttpsServer()(t, async (t, serverHttps, got) => {
serverHttp.get('/', (_request, response) => {
response.end('http');
Expand All @@ -195,7 +195,7 @@ test('redirects from http to https work', withServer, async (t, serverHttp, _got
});

test('redirects from https to http work', withHttpsServer(), async (t, serverHttps, got) => {
await withServer(t, async (t, serverHttp, _got) => {
await withServer(t, async (t, serverHttp) => {
serverHttp.get('/', (_request, response) => {
response.end('http');
});
Expand Down

0 comments on commit b581561

Please sign in to comment.