Ensures that data directories are not included in the instance definitions when being compared
This commit is contained in:
parent
9df61fa743
commit
a52789be41
|
@ -6,3 +6,4 @@ npm-debug.log
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
.env
|
.env
|
||||||
README.md
|
README.md
|
||||||
|
bitbucket-pipelines.yml
|
|
@ -2,3 +2,4 @@ node_modules
|
||||||
yarn.lock
|
yarn.lock
|
||||||
npm-debug.log
|
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 () {
|
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) {
|
it('the created instances should have the same config properties specified in the definiton', function (done) {
|
||||||
|
|
Loading…
Reference in a new issue