test: fix crypto-stream after openssl update

PR-URL: https://github.com/iojs/io.js/pull/289
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Fedor Indutny 2015-01-11 16:08:27 +03:00
parent ced41b07dd
commit a76811c811

View File

@ -70,7 +70,7 @@ var key = new Buffer('48fb56eb10ffeb13fc0ef551bbca3b1b', 'hex'),
cipher.pipe(decipher)
.on('error', common.mustCall(function end(err) {
assert(/Unsupported/.test(err));
assert(/bad decrypt/.test(err));
}));
cipher.end('Papaya!'); // Should not cause an unhandled exception.