| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b3b5ac5 commit 7874cb0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - require('../common'); | ||
| 2 | + const common = require('../common'); | ||
| 3 | 3 | const fixtures = require('../common/fixtures'); | |
| 4 | 4 | ||
| 5 | 5 | // Adding a CA certificate to contextWithCert should not also add it to | |
@@ -32,7 +32,7 @@ clientOptions.secureContext = contextWithoutCert; | |||
| 32 | 32 | connect({ | |
| 33 | 33 | client: clientOptions, | |
| 34 | 34 | server: serverOptions, | |
| 35 | - }, function(err, pair, cleanup) { | ||
| 35 | + }, common.mustCall((err, pair, cleanup) => { | ||
| 36 | 36 | assert(err); | |
| 37 | 37 | assert.strictEqual(err.message, 'unable to verify the first certificate'); | |
| 38 | 38 | cleanup(); | |
@@ -43,8 +43,8 @@ connect({ | |||
| 43 | 43 | connect({ | |
| 44 | 44 | client: clientOptions, | |
| 45 | 45 | server: serverOptions, | |
| 46 | - }, function(err, pair, cleanup) { | ||
| 46 | + }, common.mustCall((err, pair, cleanup) => { | ||
| 47 | 47 | assert.ifError(err); | |
| 48 | 48 | cleanup(); | |
| 49 | - }); | ||
| 50 | - }); | ||
| 49 | + })); | ||
| 50 | + })); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments