Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

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
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");
+ });

1 comment on commit f6052bb


This was a synchronous call because testpilot can handle asserts on promises - are you running the tests with testpilot?

Please sign in to comment.
Something went wrong with that request. Please try again.