Skip to content

Commit aa4d2a0

Browse files
Merge pull request #927 from splitio/fix-flaky
await for clean up
2 parents 45e56d4 + 15d7cbc commit aa4d2a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"test-browser-e2e-push": "cross-env NODE_ENV=test karma start karma/e2e.push.karma.conf.js",
102102
"test-node": "npm run test-node-unit && npm run test-node-e2e",
103103
"test-node-unit": "cross-env NODE_ENV=test tape -r ./ts-node.register \"src/*/**/__tests__/**/!(browser).spec.js\" | tap-min",
104-
"test-node-e2e": "npm run test-node-e2e-online && npm run test-node-e2e-offline && npm run test-node-e2e-destroy && npm run test-node-e2e-errorCatching && npm run test-node-e2e-push",
104+
"test-node-e2e": "npm run test-node-e2e-online && npm run test-node-e2e-offline && npm run test-node-e2e-destroy && npm run test-node-e2e-errorCatching && npm run test-node-e2e-push && npm run test-node-e2e-redis",
105105
"test-node-e2e-online": "cross-env NODE_ENV=test tape -r ./ts-node.register src/__tests__/online/node.spec.js | tap-min",
106106
"test-node-e2e-offline": "cross-env NODE_ENV=test tape -r ./ts-node.register src/__tests__/offline/node.spec.js | tap-min",
107107
"test-node-e2e-destroy": "cross-env NODE_ENV=test tape -r ./ts-node.register src/__tests__/destroy/node.spec.js | tap-min",

src/__tests__/consumer/node_redis.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ tape('Node.js Redis', function (t) {
662662
const impressionsKey = keys.buildImpressionsKey();
663663

664664
// Clean up list of events and impressions.
665-
connection.del(eventKey);
666-
connection.del(impressionsKey);
665+
await connection.del(eventKey);
666+
await connection.del(impressionsKey);
667667

668668
// Init Split client for current config
669669
const sdk = SplitFactory(config);

0 commit comments

Comments
 (0)