Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint
  • Loading branch information
timja committed Feb 22, 2025
commit 0bcaa01613968bd494d20a4c73c027becc4d0bf5
12 changes: 6 additions & 6 deletions test/parallel/test-native-certs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const handleRequest = (req, res) => {
};

describe('use-system-ca', function() {

async function setupServer(key, cert) {
Comment thread
timja marked this conversation as resolved.
Outdated
const theServer = https.createServer({
key: fixtures.readKey(key),
Expand All @@ -75,7 +75,7 @@ describe('use-system-ca', function() {
theServer.listen(0);
await once(theServer, 'listening');

return theServer
return theServer;
}

describe('signed with a root certificate', () => {
Expand All @@ -84,11 +84,11 @@ describe('use-system-ca', function() {
beforeEach(async function() {
server = await setupServer('agent8-key.pem', 'agent8-cert.pem');
});

it('can connect successfully', async function() {
await fetch(`https://localhost:${server.address().port}/hello-world`);
});

afterEach(async function() {
server?.close();
});
Expand All @@ -100,11 +100,11 @@ describe('use-system-ca', function() {
beforeEach(async function() {
server = await setupServer('leaf-from-intermediate-key.pem', 'leaf-from-intermediate-cert.pem');
});

it('can connect successfully', async function() {
await fetch(`https://localhost:${server.address().port}/hello-world`);
});

afterEach(async function() {
server?.close();
});
Expand Down