test: fix error message check for openssl-1.0.2a
authorShigeki Ohtsu <ohtsu@iij.ad.jp>
Thu, 5 Feb 2015 07:16:00 +0000 (16:16 +0900)
committerShigeki Ohtsu <ohtsu@iij.ad.jp>
Tue, 14 Apr 2015 15:39:14 +0000 (00:39 +0900)
openssl-1.0.2a does not include function name of SSL3_GET_CLIENT_HELLO
in the error message

Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test/parallel/test-tls-no-sslv3.js

index dbe1995..0fc0dcc 100644 (file)
@@ -36,5 +36,5 @@ server.listen(common.PORT, '127.0.0.1', function() {
 });
 
 server.once('clientError', common.mustCall(function(err, conn) {
-  assert(/SSL3_GET_CLIENT_HELLO:wrong version number/.test(err.message));
+  assert(/:wrong version number/.test(err.message));
 }));