Ensures that data directories are not included in the instance definitions when being compared
This commit is contained in:
parent
9df61fa743
commit
a52789be41
|
@ -5,4 +5,5 @@ yarn.lock
|
|||
npm-debug.log
|
||||
docker-compose.yml
|
||||
.env
|
||||
README.md
|
||||
README.md
|
||||
bitbucket-pipelines.yml
|
|
@ -1,4 +1,5 @@
|
|||
node_modules
|
||||
yarn.lock
|
||||
npm-debug.log
|
||||
.env
|
||||
.env
|
||||
bitbucket-pipelines.yml
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue