Skip to content

Instantly share code, notes, and snippets.

/tls.diff Secret

Created August 12, 2016 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b9cdf417bdb6c00f039f89d5f5cf9617 to your computer and use it in GitHub Desktop.
Save anonymous/b9cdf417bdb6c00f039f89d5f5cf9617 to your computer and use it in GitHub Desktop.
diff --git a/t/mojo/user_agent_tls.t b/t/mojo/user_agent_tls.t
index d18e1af..6a29f7a 100644
--- a/t/mojo/user_agent_tls.t
+++ b/t/mojo/user_agent_tls.t
@@ -93,7 +93,6 @@ $port = Mojo::IOLoop->acceptor($daemon->acceptors->[0])->port;
# Invalid certificate
$ua = Mojo::UserAgent->new(ioloop => $ua->ioloop);
$ua->cert('t/mojo/certs/bad.crt')->key('t/mojo/certs/bad.key');
-IO::Socket::SSL::set_defaults(SSL_version => 'TLSv1');
$tx = $ua->get("https://127.0.0.1:$port");
ok $tx->success, 'successful';
ok !$tx->error, 'no error';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment