Skip to content
Snippets Groups Projects
Commit df6e1c5f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Unit Tests were opening ports with UPnP

parent 91f8d5d0
Branches
Tags
No related merge requests found
......@@ -29,6 +29,7 @@ describe('Module usage', () => {
}, 'duniter-automated-test');
yield stack.executeStack(['node', 'index.js', 'test1',
'--memory',
'--noupnp',
'--ipv4', '127.0.0.1',
'--port', '10400'
]);
......
......@@ -116,7 +116,7 @@ describe("CLI", function() {
}));
it('config --autoconf', () => co(function*() {
let res = yield execute(['config', '--autoconf']);
let res = yield execute(['config', '--autoconf', '--noupnp']);
res.should.have.property("pair").property('pub').not.equal("");
res.should.have.property("pair").property('sec').not.equal("");
}));
......
......@@ -24,7 +24,7 @@ describe("Integration", function() {
describe("Node 1", function() {
const node1 = node('db1', { currency: 'bb', ipv4: 'localhost', port: 9999, remoteipv4: 'localhost', remoteport: 9999, httplogs: false,
const node1 = node('db1', { upnp: false, currency: 'bb', ipv4: 'localhost', port: 9999, remoteipv4: 'localhost', remoteport: 9999, httplogs: false,
rootoffset: 0,
sigQty: 1,
pair: {
......
......@@ -180,7 +180,7 @@ function Node (dbName, options) {
options.remoteipv4 = options.remoteipv4 || null;
options.remoteipv6 = options.remoteipv6 || null;
options.remoteport = options.remoteport || 10901;
const cliOptions = []
const cliOptions = ['--ws2p-noupnp']
if (options.port) {
cliOptions.push('--port')
cliOptions.push(options.port)
......
......@@ -158,7 +158,7 @@ describe("v1.0 Module API", () => {
function run() {
const args = Array.from(arguments);
return stack.executeStack(['node', 'index.js', '--memory'].concat(args));
return stack.executeStack(['node', 'index.js', '--memory', '--ws2p-noupnp'].concat(args));
}
before(() => co(function*() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment