Skip to content

Commit

Permalink
fix http tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tlhunter committed Oct 3, 2023
1 parent 2ab1e3f commit c872d37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test-diagnostics-channel-http-server-start.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ const common = require('./common.js');
const { AsyncLocalStorage } = require('async_hooks');
const dc = require('../dc-polyfill.js');
const http = require('http');
const { MAJOR, MINOR } = require('../checks.js');

// This test depends on features only available in certain versions of Node.js
if (MAJOR < 14) return;
if (MAJOR === 14 && MINOR < 17) return;
if (MAJOR === 15 && MINOR < 1) return;

const als = new AsyncLocalStorage();
let context;
Expand Down

0 comments on commit c872d37

Please sign in to comment.