Fixed proxy test not using proxy.
This commit is contained in:
parent
a373a899e3
commit
7a70129b29
|
|
@ -114,7 +114,7 @@ async function startMemorySample(snapshotTriggers = []) {
|
||||||
|
|
||||||
async function testProxy() {
|
async function testProxy() {
|
||||||
if (config.proxy.enable && argv.testProxy) {
|
if (config.proxy.enable && argv.testProxy) {
|
||||||
const res = await unprint.get(argv.testProxy);
|
const res = await unprint.get(argv.testProxy, { useProxy: true });
|
||||||
|
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
throw new Error(`Proxy is offline (${res.status})`);
|
throw new Error(`Proxy is offline (${res.status})`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue