Permalink
Browse files

Fix issue with older node versions

  • Loading branch information...
1 parent f3eef81 commit a133cb751210f9f78e9343bd777e124adc9fe4f2 Andre Rodrigues committed Oct 15, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/services/blob/blobservice-tests.js
@@ -1215,13 +1215,13 @@ suite('blobservice-tests', function () {
blobService.getBlobToFile(containerName, blobName, fileNameTarget, function (error2) {
assert.equal(error2, null);
- fs.exists(fileNameTarget, function (exists) {
- assert.equal(exists, true);
+ var exists = azureutil.pathExistsSync(fileNameTarget);
+ assert.equal(exists, true);
- var fileText = fs.readFileSync(fileNameTarget);
- assert.equal(blobText, fileText);
- done();
- });
+ var fileText = fs.readFileSync(fileNameTarget);
+ assert.equal(blobText, fileText);
+
+ done();
});
});
});

0 comments on commit a133cb7

Please sign in to comment.