From 8526b0bede5aeb9508fb8c4a3f05ce6f43bdfd94 Mon Sep 17 00:00:00 2001 From: peteriman Date: Sat, 4 Jan 2020 15:55:50 +0800 Subject: [PATCH] Reduced risk of collision by using uuid.v4() instead of Date.now() (To be consistent with test.highLevelProducer.js line 24) --- test/test.producer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.producer.js b/test/test.producer.js index d554d167..04c2bd68 100644 --- a/test/test.producer.js +++ b/test/test.producer.js @@ -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;