saucelabs/sauce_ruby — Issue #20: SSL errors with Sauce::TestCase
Author: fotioslindiakos
Created: 2011-10-11 15:56:10+00:00
State: open

I am getting this error on my Rails server when trying to run the tests on my local machine following the 'Test::Unit integration without Rails' example. My test app is only accessible via HTTPS (since in PROD we have Apache handle redirection). I am not sure if it is related to my configuration (included at the bottom).

```
[2011-10-11 11:48:46] ERROR OpenSSL::SSL::SSLError: SSL_accept SYSCALL returned=5 errno=0 state=SSLv2/v3 read client hello A
/usr/lib/ruby/1.8/openssl/ssl-internal.rb:166:in `accept'
```

My test script gets these errors:

```
1) Failure:
test_sauce(ExampleTest)
[test.rb:24:in `test_sauce'
/usr/lib/ruby/gems/1.8/gems/sauce-1.0.2/lib/sauce/integrations.rb:202:in `run'
/usr/lib/ruby/gems/1.8/gems/sauce-1.0.2/lib/sauce/integrations.rb:173:in `each'
/usr/lib/ruby/gems/1.8/gems/sauce-1.0.2/lib/sauce/integrations.rb:173:in `run']:
is not true.
```

Configuration:

```
hostname = Socket.gethostbyname(Socket.gethostname).first #returns FQDN which works locally

# This should go in your test_helper.rb file if you have one
Sauce.config do |config|
config.browser_url = "https://#{hostname}"

# uncomment this if your server is not publicly accessible
config.application_host = hostname
config.application_port = "443"
end
```