Increase Qunit tests timeout on Travis.

This commit is contained in:
Guo Xiang Tan 2016-11-30 16:35:44 +08:00
parent 2ffb42a055
commit 5200446eb7
2 changed files with 3 additions and 3 deletions

View File

@ -55,4 +55,4 @@ install:
- bash -c "if [ '$RAILS_MASTER' == '1' ]; then bundle update --retry=3 --jobs=3 arel rails rails-observers seed-fu; fi"
- bash -c "if [ '$RAILS_MASTER' == '0' ]; then bundle install --without development --deployment --retry=3 --jobs=3; fi"
script: 'bundle exec rspec && bundle exec rake plugin:spec && bundle exec rake qunit:test'
script: 'bundle exec rspec && bundle exec rake plugin:spec && bundle exec rake qunit:test['200000']'

View File

@ -1,6 +1,6 @@
desc "Runs the qunit test suite"
task "qunit:test" => :environment do
task "qunit:test", [:timeout] => :environment do |_, args|
require "rack"
require "socket"
@ -35,7 +35,7 @@ task "qunit:test" => :environment do
begin
success = true
test_path = "#{Rails.root}/vendor/assets/javascripts"
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit"
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit #{args[:timeout]}"
options = {}