FrankChen021 commented on code in PR #19920:
URL: https://github.com/apache/druid/pull/19920#discussion_r3739909083


##########
indexing-service/src/test/java/org/apache/druid/indexing/common/tasklogs/FileTaskLogsTest.java:
##########
@@ -66,7 +57,7 @@ public void testSimple() throws Exception
       for (Map.Entry<Long, String> entry : expected.entrySet()) {
         final byte[] bytes = 
ByteStreams.toByteArray(taskLogs.streamTaskLog("foo", entry.getKey()).get());
         final String string = StringUtils.fromUtf8(bytes);
-        Assert.assertEquals(StringUtils.format("Read with offset %,d", 
entry.getKey()), string, entry.getValue());
+        Assertions.assertEquals(string, entry.getValue(), 
StringUtils.format("Read with offset %,d", entry.getKey()));

Review Comment:
   Fixed the assertion argument order so the expected value is first and the 
actual value is second.



-- 
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