Skip to content

Commit

Permalink
Fix a Node.js integration test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Jan 28, 2014
1 parent d2620d8 commit 74ed789
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion build/integration_tests.rb
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions test/stub/node/app.js
Expand Up @@ -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");
});
});
});

Expand Down

0 comments on commit 74ed789

Please sign in to comment.