Lines Matching refs:testOptions
43 function test(testOptions, cb) {
49 const requestCount = testOptions.response ? 0 : 1;
51 if (!testOptions.ocsp)
52 assert.strictEqual(testOptions.response, undefined);
54 if (testOptions.pfx) {
57 options.pfx = testOptions.pfx;
58 options.passphrase = testOptions.passphrase;
72 if (!testOptions.ocsp)
80 return setTimeout(callback, 100, null, testOptions.response ?
81 Buffer.from(testOptions.response) : null);
87 requestOCSP: testOptions.ocsp,
88 secureOptions: testOptions.ocsp ? 0 : SSL_OP_NO_TICKET,
93 if (testOptions.response) {
94 assert.strictEqual(resp.toString(), testOptions.response);
99 }, testOptions.ocsp === false ? 0 : 1));