Skip to content

Commit 8526b0b

Browse files
committed
Reduced risk of collision by using uuid.v4() instead of Date.now()
(To be consistent with test.highLevelProducer.js line 24)
1 parent b7b1953 commit 8526b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.producer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var client, producer, noAckProducer, producerKeyed;
2121
suiteTimeout: 30000
2222
}
2323
].forEach(function (testParameters) {
24-
var TOPIC_POSTFIX = '_test_' + Date.now();
24+
var TOPIC_POSTFIX = '_test_' + uuid.v4();
2525
var EXISTS_TOPIC_3 = '_exists_3' + TOPIC_POSTFIX;
2626

2727
var sslOptions = testParameters.sslOptions;

0 commit comments

Comments
 (0)