Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a Node.js integration test failure

  • Loading branch information...
commit 74ed789f36fe7f697b2c95c8cd1cda3c48882857 1 parent d2620d8
@FooBarWidget FooBarWidget authored
Showing with 8 additions and 3 deletions.
  1. +5 −1 build/integration_tests.rb
  2. +3 −2 test/stub/node/app.js
View
6 build/integration_tests.rb
@@ -59,7 +59,11 @@
require 'shellwords'
command << " -e #{Shellwords.escape(grep)}"
end
- sh "cd test && exec #{command}"
+ repeat = true
+ while repeat
+ sh "cd test && exec #{command}"
+ repeat = boolean_option('REPEAT')
+ end
end
end
View
5 test/stub/node/app.js
@@ -116,8 +116,9 @@ app.all('/raw_upload_to_file', function(req, res) {
stream.write(data);
});
req.on('end', function() {
- stream.end();
- textResponse(res, "ok");
+ stream.end(function() {
+ textResponse(res, "ok");
+ });
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.