tests: fix for fuzz tests (#4068)
This commit is contained in:
parent
0b7ace83d5
commit
71bffed190
3 changed files with 433 additions and 433 deletions
860
src/package-lock.json
generated
860
src/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -2,12 +2,12 @@
|
|||
* Fuzz testing the import endpoint
|
||||
*/
|
||||
const fs = require('fs');
|
||||
const settings = require(__dirname+'/../../loadSettings').loadSettings();
|
||||
const settings = require(__dirname+'/../../../../tests/container/loadSettings.js').loadSettings();
|
||||
const host = "http://" + settings.ip + ":" + settings.port;
|
||||
const path = require('path');
|
||||
const async = require(__dirname+'/../../../../src/node_modules/async');
|
||||
const request = require('request');
|
||||
const froth = require('mocha-froth');
|
||||
const froth = require(__dirname+'/../../../../src/node_modules/mocha-froth');
|
||||
|
||||
var filePath = path.join(__dirname, '../../../../APIKEY.txt');
|
||||
var apiKey = fs.readFileSync(filePath, {encoding: 'utf-8'});
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
const assert = require('assert');
|
||||
const supertest = require(__dirname+'/../../../../src/node_modules/supertest');
|
||||
const fs = require('fs');
|
||||
const settings = require(__dirname+'/../../loadSettings').loadSettings();
|
||||
const settings = require(__dirname+'/../../../../tests/container/loadSettings.js').loadSettings();
|
||||
const host = 'http://127.0.0.1:'+settings.port;
|
||||
const api = supertest('http://'+settings.ip+":"+settings.port);
|
||||
const path = require('path');
|
||||
|
|
Loading…
Reference in a new issue