| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4571c84 commit a2621a2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,20 +39,14 @@ function test2() { | |||
| 39 | 39 | } | |
| 40 | 40 | ||
| 41 | 41 | function test(keyfn, certfn, check, next) { | |
| 42 | - // FIXME: Avoid the common PORT as this test currently hits a C-level | ||
| 43 | - // assertion error with node_g. The program aborts without HUPing | ||
| 44 | - // the openssl s_server thus causing many tests to fail with | ||
| 45 | - // EADDRINUSE. | ||
| 46 | - var PORT = common.PORT + 5; | ||
| 47 | - | ||
| 48 | 42 | keyfn = join(common.fixturesDir, keyfn); | |
| 49 | 43 | var key = fs.readFileSync(keyfn).toString(); | |
| 50 | 44 | ||
| 51 | 45 | certfn = join(common.fixturesDir, certfn); | |
| 52 | 46 | var cert = fs.readFileSync(certfn).toString(); | |
| 53 | 47 | ||
| 54 | 48 | var server = spawn(common.opensslCli, ['s_server', | |
| 55 | - '-accept', PORT, | ||
| 49 | + '-accept', common.PORT, | ||
| 56 | 50 | '-cert', certfn, | |
| 57 | 51 | '-key', keyfn]); | |
| 58 | 52 | server.stdout.pipe(process.stdout); | |
@@ -121,7 +115,7 @@ function test(keyfn, certfn, check, next) { | |||
| 121 | 115 | pair.encrypted.pipe(s); | |
| 122 | 116 | s.pipe(pair.encrypted); | |
| 123 | 117 | ||
| 124 | - s.connect(PORT); | ||
| 118 | + s.connect(common.PORT); | ||
| 125 | 119 | ||
| 126 | 120 | s.on('connect', function() { | |
| 127 | 121 | console.log('client connected'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments