Skip to content

Commit

Permalink
Reduced risk of collision by using uuid.v4() instead of Date.now()
Browse files Browse the repository at this point in the history
(To be consistent with test.highLevelProducer.js line 24)
  • Loading branch information
lamweili committed Jan 4, 2020
1 parent b7b1953 commit 8526b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.producer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var client, producer, noAckProducer, producerKeyed;
suiteTimeout: 30000
}
].forEach(function (testParameters) {
var TOPIC_POSTFIX = '_test_' + Date.now();
var TOPIC_POSTFIX = '_test_' + uuid.v4();
var EXISTS_TOPIC_3 = '_exists_3' + TOPIC_POSTFIX;

var sslOptions = testParameters.sslOptions;
Expand Down

0 comments on commit 8526b0b

Please sign in to comment.