Skip to content

Commit 5d73fb3

Browse files
committed
Fixed tests
1 parent 491603c commit 5d73fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/TestMultipartUploadWithCopy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static void setUp() throws Exception {
113113
// Make sure DELAY_MS has passed, otherwise
114114
// afterSourceKeyModificationTimeStr will be in the future
115115
// and thus invalid
116-
long currentTime = Time.monotonicNow();
116+
long currentTime = System.currentTimeMillis();
117117
long sleepMs = sourceKeyLastModificationTime + DELAY_MS - currentTime;
118118
if (sleepMs > 0) {
119119
Thread.sleep(sleepMs);

0 commit comments

Comments
 (0)