Make Ssl tests opt-in

This commit is contained in:
Nicolas Dextraze 2018-04-12 09:42:49 -07:00
parent bc2fbe14e3
commit 34e8262dc8
4 changed files with 3555 additions and 15 deletions

View File

@ -0,0 +1,11 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<codeStyleSettings language="JavaScript">
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
</code_scheme>
</component>

View File

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

View File

@ -3,6 +3,8 @@ var GossipSeed = require('../src/gossipSeed');
var testBase = require('./common/base_test');
var withSsl = !!process.env.NODE_ESC_WITH_SSL;
module.exports = {
'Connect To Endpoint Happy Path': function (test) {
test.expect(1);
@ -72,8 +74,11 @@ module.exports = {
if (err) return test.done(err);
test.done();
}
}*/,
'Connect to secure tcp endpoint': function(test) {
}*/
};
if (withSsl) {
module.exports['Connect to secure tcp endpoint'] = function(test) {
var conn = client.createConnection({
useSslConnection: true,
targetHost: 'localhost',
@ -90,6 +95,6 @@ module.exports = {
test.done();
});
}
};
}
testBase.init(module.exports, false);

3519
yarn.lock Normal file

File diff suppressed because it is too large Load Diff