Skip to content

Commit

Permalink
build: aws sdk v3 kinesis missing node version check added (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamohanan authored Aug 14, 2023
1 parent b48bcac commit 6fef21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
'use strict';

const { v4: uuid } = require('uuid');
const { cleanup } = require('./util');
const semver = require('semver');
const { checkStreamExistence } = require('./util');
const { expect } = require('chai');
const path = require('path');
const { fail } = expect;
Expand Down Expand Up @@ -54,10 +52,13 @@ function start(version) {
let mochaSuiteFn;
if (!supportedVersion(process.versions.node) || semver.lt(process.versions.node, '14.0.0')) {
mochaSuiteFn = describe.skip;
return;
} else {
mochaSuiteFn = describe;
}

const { cleanup } = require('./util');
const { checkStreamExistence } = require('./util');
const retryTime = config.getTestTimeout() * 5;

mochaSuiteFn(`npm: ${version}`, function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
'use strict';

const { KinesisClient, DescribeStreamCommand, DeleteStreamCommand } = require('@aws-sdk/client-kinesis');

const kinesis = new KinesisClient({ region: 'us-east-2' });
const interval = 1000;
const MAX_WAIT_TIME = 10000;
Expand Down

0 comments on commit 6fef21e

Please sign in to comment.