(fix) e2e test delete test device bug.
This commit is contained in:
Родитель
4768449b16
Коммит
844b6e5075
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче