Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix ServerTest to use async StreamUtil.equal

  • Loading branch information...
commit f6052bbd185389b81c961a9da1d5da43e0dd1263 1 parent 36dad68
@SLaks SLaks authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 testing/tests/ServerTest.js
View
4 testing/tests/ServerTest.js
@@ -606,7 +606,9 @@ module.exports["form processing"] = {
// compare to file that was sent
var expected = fs.readFileSync(testbench.fixturesDir + '/form-data/chupacabra.jpg');
- test.ok(StreamUtil.equal(expected, fileContent), "received file doesn't match expected");
+ StreamUtil.equal(expected, fileContent).then(function (equal) {
+ test.ok(equal, "received file doesn't match expected");
+ });
d.resolve();
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.