зеркало из
1
0
Форкнуть 0

(fix) e2e test delete test device bug.

This commit is contained in:
Anthony Ercolano 2019-04-19 14:59:18 -07:00 коммит произвёл Anthony V. Ercolano
Родитель 4768449b16
Коммит 844b6e5075
2 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@ -281,15 +281,11 @@ describe('Registry', function () {
scopedDeviceCreateResult.deviceScope = uuid.v4();
registry.update(scopedDeviceCreateResult, function(updateErr) {
assert(updateErr, 'Scoped device was incorrectly allowed to update its scope property.');
var edgeDeleteResult;
var scopedDeleteResult;
registry.delete(edgeCreateResult.deviceId, function (err) {
edgeDeleteResult = err;
registry.delete(edgeCreateResult.deviceId, function (edgeDeleteError) {
registry.delete(scopedDeviceCreateResult.deviceId, function (scopedDeleteError) {
done(edgeDeleteError || scopedDeleteError);
});
});
registry.delete(scopedDeviceCreateResult.deviceId, function (err) {
scopedDeleteResult = err;
});
done(edgeDeleteResult || scopedDeleteResult);
});
}
});

4
provisioning/e2e/package-lock.json сгенерированный
Просмотреть файл

@ -112,6 +112,7 @@
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
"integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
"optional": true,
"requires": {
"file-uri-to-path": "1.0.0"
}
@ -397,7 +398,8 @@
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
"optional": true
},
"fs.realpath": {
"version": "1.0.0",