s3: fix restore

This commit is contained in:
Girish Ramakrishnan
2017-09-28 14:26:39 -07:00
parent 5123b669d7
commit 19999abc50
4 changed files with 37 additions and 29 deletions

View File

@@ -190,14 +190,10 @@ describe('Storage', function () {
it('cannot download deleted backup', function (done) {
filesystem.download(gBackupConfig, gBackupId_1, function (error, stream) {
expect(error).to.be(null);
expect(error).to.be.an('object');
expect(error.reason).to.equal(BackupsError.NOT_FOUND);
stream.on('error', function (error) {
expect(error).to.be.an('object');
expect(error.reason).to.equal(BackupsError.NOT_FOUND);
done();
});
done();
});
});