Copilot commented on code in PR #63136:
URL: https://github.com/apache/doris/pull/63136#discussion_r3217712420


##########
fe/fe-core/src/test/java/org/apache/doris/qe/ResultReceiverConsumerTest.java:
##########
@@ -36,6 +36,16 @@ public class ResultReceiverConsumerTest {
     private ResultReceiver receiver2 = Mockito.mock(ResultReceiver.class);
     private ResultReceiver receiver3 = Mockito.mock(ResultReceiver.class);
 
+    @Test
+    public void testEmptyReceiversForRemoteResult() throws Exception {
+        ResultReceiverConsumer consumer = new 
ResultReceiverConsumer(Lists.newArrayList(),
+                System.currentTimeMillis() + 3600);
+        Status status = new Status();

Review Comment:
   `timeoutDeadline` in `ResultReceiverConsumer` is compared against 
`System.currentTimeMillis()` and treated as an epoch-millis deadline. Using 
`System.currentTimeMillis() + 3600` only sets a ~3.6s deadline, which is easy 
to misread as 1 hour and could make the test flaky on slower CI. Consider using 
`TimeUnit.HOURS.toMillis(1)` (or at least `3600_000`) to make the units 
explicit.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to