rmuir commented on code in PR #11749:
URL: https://github.com/apache/lucene/pull/11749#discussion_r963782724


##########
lucene/classification/src/test/org/apache/lucene/classification/Test20NewsgroupsClassification.java:
##########
@@ -123,13 +124,13 @@ public void test20Newsgroups() throws Exception {
 
         System.out.println("Indexing 20 Newsgroups...");
 
-        long startIndex = System.currentTimeMillis();
+        long startIndex = Clock.systemDefaultZone().millis();

Review Comment:
   Can we fix this test to use `nanoTime` too (monotonic clock), rather than 
the system clock? Currently, the `precommit` checks are angry about use of the 
default time zone, but we can avoid dealing with timezones completely here i 
think?



-- 
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: issues-unsubscr...@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to