Skip to content

Commit

Permalink
syntax: general clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tegefaulkes committed May 27, 2022
1 parent 6dddc01 commit 26173b8
Showing 1 changed file with 53 additions and 3 deletions.
56 changes: 53 additions & 3 deletions tests/network/Proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as networkUtils from '@/network/utils';
import * as networkErrors from '@/network/errors';
import * as keysUtils from '@/keys/utils';
import * as nodesUtils from '@/nodes/utils';
import { promisify, promise, timerStart, timerStop, poll } from '@/utils';
import { poll, promise, promisify, timerStart, timerStop } from '@/utils';
import * as testUtils from '../utils';

/**
Expand Down Expand Up @@ -141,6 +141,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand All @@ -157,6 +159,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand All @@ -170,6 +174,7 @@ describe(Proxy.name, () => {
// Start it again
await proxy.start({
forwardHost: '::1' as Host,
proxyHost: localHost,
serverHost: localHost,
serverPort: port,
tlsConfig: {
Expand All @@ -193,6 +198,7 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -244,6 +250,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -278,6 +286,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -336,6 +346,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -395,6 +407,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -501,6 +515,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -619,6 +635,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -738,6 +756,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -863,6 +883,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -993,6 +1015,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -1142,6 +1166,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -1294,6 +1320,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -1465,6 +1493,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -1621,6 +1651,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -1753,6 +1785,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -1871,6 +1905,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -2009,6 +2045,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -2116,6 +2154,8 @@ describe(Proxy.name, () => {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
serverHost: localHost,
serverPort: port,
});
Expand Down Expand Up @@ -2267,7 +2307,8 @@ describe(Proxy.name, () => {
await proxy.start({
serverHost: serverHost(),
serverPort: serverPort(),

proxyHost: localHost,
forwardHost: localHost,
tlsConfig: {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
Expand Down Expand Up @@ -2298,7 +2339,8 @@ describe(Proxy.name, () => {
await proxy.start({
serverHost: serverHost(),
serverPort: serverPort(),

proxyHost: localHost,
forwardHost: localHost,
tlsConfig: {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
Expand Down Expand Up @@ -2338,6 +2380,8 @@ describe(Proxy.name, () => {
await proxy.start({
serverHost: serverHost(),
serverPort: serverPort(),
proxyHost: localHost,
forwardHost: localHost,

tlsConfig: {
keyPrivatePem: keyPairPem.privateKey,
Expand Down Expand Up @@ -2389,6 +2433,8 @@ describe(Proxy.name, () => {
await proxy.start({
serverHost: serverHost(),
serverPort: serverPort(),
proxyHost: localHost,
forwardHost: localHost,

tlsConfig: {
keyPrivatePem: keyPairPem.privateKey,
Expand Down Expand Up @@ -2465,6 +2511,8 @@ describe(Proxy.name, () => {
await proxy.start({
serverHost: serverHost(),
serverPort: serverPort(),
proxyHost: localHost,
forwardHost: localHost,

tlsConfig: {
keyPrivatePem: keyPairPem.privateKey,
Expand Down Expand Up @@ -2624,6 +2672,7 @@ describe(Proxy.name, () => {
certChainPem: certPem,
},
proxyHost: localHost,
forwardHost: localHost,
});
const externalHost = proxy.getProxyHost();
const externalPort = proxy.getProxyPort();
Expand Down Expand Up @@ -2730,6 +2779,7 @@ describe(Proxy.name, () => {
serverHost: serverHost(),
serverPort: serverPort(),
proxyHost: localHost,
forwardHost: localHost,
tlsConfig: {
keyPrivatePem: keyPairPem.privateKey,
certChainPem: certPem,
Expand Down

0 comments on commit 26173b8

Please sign in to comment.