test/ssl-test_test.rb in ssl-test-0.0.2 vs test/ssl-test_test.rb in ssl-test-1.0.0

- old
+ new

@@ -37,9 +37,16 @@ valid.must_be_nil error.must_equal "SSL certificate test failed: getaddrinfo: Name or service not known" cert.must_be_nil end + it "stops on timeouts" do + valid, error, cert = SSLTest.test("https://approachio.com", open_timeout: 1) + valid.must_be_nil + error.must_equal "SSL certificate test failed: execution expired" + cert.must_be_nil + end + # Not implemented yet # it "returns error on revoked cert" do # valid, error, cert = SSLTest.test("https://revoked.grc.com") # valid.must_equal false # error.must_equal "error code XX: certificate has been revoked" \ No newline at end of file