Skip to content

Commit

Permalink
test: fixed other nodejs build for sns
Browse files Browse the repository at this point in the history
  • Loading branch information
kirrg001 committed Sep 12, 2023
1 parent 9df2665 commit c1aa06f
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const {
verifyHttpExit
} = require('@instana/core/test/test_util/common_verifications');
const constants = require('@instana/core').tracing.constants;
const utils = require('./utils');
let utils;

let topicArn;
const topicName = 'MyNodeTopicArn';
Expand All @@ -34,16 +34,15 @@ const availableCommands = {
};

function start(version) {
let mochaSuiteFn;
this.timeout(config.getTestTimeout() * 4);

// https://github.com/aws/aws-sdk-js-v3/blob/v3.391.0/clients/client-sns/package.json#L70
if (!supportedVersion(process.versions.node) || semver.lt(process.versions.node, '14.0.0')) {
mochaSuiteFn = describe.skip;
} else {
mochaSuiteFn = describe;
it.skip(`npm: ${version}`, () => {});
return;
}

utils = require('./utils');
const queueName = utils.generateQueueName();
const retryTime = config.getTestTimeout() * 5;
let queueUrl;
Expand All @@ -64,7 +63,7 @@ function start(version) {
await utils.removeQueue(queueUrl);
});

mochaSuiteFn(`npm: ${version}`, function () {
describe(`npm: ${version}`, function () {
globalAgent.setUpCleanUpHooks();
const agentControls = globalAgent.instance;

Expand Down

0 comments on commit c1aa06f

Please sign in to comment.