Ensures that data directories are not included in the instance definitions when being compared

This commit is contained in:
Zachary Boyd 2018-08-10 10:08:46 -04:00
parent 9df61fa743
commit a52789be41
3 changed files with 9 additions and 3 deletions

View file

@ -5,4 +5,5 @@ yarn.lock
npm-debug.log
docker-compose.yml
.env
README.md
README.md
bitbucket-pipelines.yml

View file

@ -1,4 +1,5 @@
node_modules
yarn.lock
npm-debug.log
.env
.env
bitbucket-pipelines.yml

View file

@ -156,7 +156,11 @@ describe('TorPool', function () {
});
it('the created instances should have the same defintion properties as the input definitions', function () {
assert.deepEqual(instance_defintions, torPool.instances.map((i) => i.definition));
assert.deepEqual(instance_defintions, torPool.instances.map((i) => {
let def_clone = _.extend({}, i.definition);
delete def_clone.Config.DataDirectory;
return def_clone;
}));
});
it('the created instances should have the same config properties specified in the definiton', function (done) {