mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 01:27:01 +02:00
test: don't fail on local, in dev mode or test
tests were failing on windows without this
This commit is contained in:
@@ -82,9 +82,12 @@ class NodeBBAgent extends Agent {
|
||||
return super.dispatch(opts, handler);
|
||||
}
|
||||
}
|
||||
|
||||
const isDevOrTest = process.env.NODE_ENV === 'development' || process.env.CI === 'true';
|
||||
const dispatcher = new NodeBBAgent({
|
||||
connect: { lookup },
|
||||
connect: {
|
||||
lookup,
|
||||
rejectUnauthorized: !isDevOrTest,
|
||||
},
|
||||
});
|
||||
|
||||
setGlobalDispatcher(dispatcher);
|
||||
|
||||
Reference in New Issue
Block a user