Skip to content

Commit 3db900f

Browse files
committedJan 27, 2014
spec: fix random timeouts using a tunnel identifier
1 parent c091d86 commit 3db900f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ before_script:
5555
- bundle exec rackup -p 9292 &
5656
- sleep 10
5757
- wget http://www.browserstack.com/BrowserStackTunnel.jar
58-
- java -jar BrowserStackTunnel.jar $BS_AUTHKEY localhost,9292,0 &
59-
#- java -jar BrowserStackTunnel.jar -tunnelIdentifier $TRAVIS_JOB_ID $BS_AUTHKEY localhost,9292,0 &
58+
- java -jar BrowserStackTunnel.jar $BS_AUTHKEY localhost,9292,0 -tunnelIdentifier $TRAVIS_JOB_ID &
6059
- sleep 10
6160

6261
script:

‎spec/runner.rb

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
cap['browser'] = ENV['SELENIUM_BROWSER'] || 'chrome'
1111
cap['browser_version'] = ENV['SELENIUM_VERSION'] if ENV['SELENIUM_VERSION']
1212

13-
cap['browserstack.tunnel'] = 'true'
14-
cap['browserstack.debug'] = 'true'
13+
cap['browserstack.tunnelIdentifier'] = ENV['TRAVIS_JOB_ID']
14+
cap['browserstack.tunnel'] = 'true'
15+
cap['browserstack.debug'] = 'false'
1516

1617
print 'Loading...'
1718

@@ -35,9 +36,9 @@
3536
end
3637

3738
unless (browser.find_element(:css, '.rspec-report') rescue false)
38-
puts "\rConnection error..."
39+
puts "\rThe specs didn't load."
3940
browser.quit
40-
exit 0
41+
exit 1
4142
end
4243

4344
print "\rRunning specs..."

0 commit comments

Comments
 (0)
Please sign in to comment.