test/test_tls.rb in mosquitto-0.2 vs test/test_tls.rb in mosquitto-0.3

- old
+ new

@@ -27,12 +27,13 @@ assert client.loop_start client.on_connect do |rc| connected = true end assert client.tls_opts_set(Mosquitto::SSL_VERIFY_PEER, "tlsv1.2", nil) - client.tls_set(ssl_object('mosquitto.org.crt'), nil, nil, nil, nil) - assert client.connect(TLS_TEST_HOST, TLS_TEST_PORT, 10) + client.tls_set(ssl_object('test-root-ca.crt'), nil, ssl_object('client.crt'), ssl_object('client.key'), nil) + assert client.connect(TLS_TEST_HOST, TLS_TEST_PORT, TIMEOUT) client.wait_readable && sleep(3) + assert connected ensure client.loop_stop(true) end \ No newline at end of file