You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/11/09 02:54:20 UTC

[GitHub] [dolphinscheduler] JinyLeeChina commented on a change in pull request #6744: [Bug][SnowFlakeUtils] fix snowFlake bug

JinyLeeChina commented on a change in pull request #6744:
URL: https://github.com/apache/dolphinscheduler/pull/6744#discussion_r745250021



##########
File path: dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/utils/SnowFlakeUtilsTest.java
##########
@@ -23,7 +23,8 @@
     @Test
     public void testNextId() {
         try {
-            for (int i = 0; i < 5; i++) {
+            for (int i = 0; i < 100; i++) {
+                Thread.sleep(1);

Review comment:
       This is a UT test to see if a duplicate is generated in the next millisecond




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org