Fix failing dns and network test

This commit is contained in:
Girish Ramakrishnan
2021-04-14 21:24:37 -07:00
parent f15714182b
commit 5833d6ed5d
3 changed files with 49 additions and 16 deletions

View File

@@ -4,18 +4,17 @@
'use strict';
var network = require('../network.js'),
var BoxError = require('../boxerror.js'),
expect = require('expect.js'),
fs = require('fs'),
path = require('path'),
paths = require('../paths.js'),
BoxError = require('../boxerror.js'),
expect = require('expect.js');
network = require('../network.js'),
paths = require('../paths.js');
describe('Network', function () {
describe('Blocklist', function () {
before(function () {
fs.mkdirSync(path.dirname(paths.FIREWALL_BLOCKLIST_FILE));
fs.writeFileSync(paths.FIREWALL_BLOCKLIST_FILE, '', 'utf8');
});
it('can get empty blocklist', function (done) {