Permalink
Browse files

Fix a Node.js integration test failure

  • Loading branch information...
1 parent d2620d8 commit 74ed789f36fe7f697b2c95c8cd1cda3c48882857 @FooBarWidget FooBarWidget committed Jan 28, 2014
Showing with 8 additions and 3 deletions.
  1. +5 −1 build/integration_tests.rb
  2. +3 −2 test/stub/node/app.js
@@ -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
@@ -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");
+ });
});
});

0 comments on commit 74ed789

Please sign in to comment.