Make Ssl tests opt-in
This commit is contained in:
parent
bc2fbe14e3
commit
34e8262dc8
11
.idea/codeStyles/Project.xml
Normal file
11
.idea/codeStyles/Project.xml
Normal 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>
|
5
.idea/codeStyles/codeStyleConfig.xml
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
|
||||
</state>
|
||||
</component>
|
|
@ -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);
|
Loading…
Reference in New Issue
Block a user