Skip to content

Commit 8652c1b

Browse files
committed
Fix UT
Signed-off-by: sunlisheng <[email protected]>
1 parent f2c8c58 commit 8652c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/shortcircuit/TestShortCircuitCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,8 @@ public void testDNRestart() throws Exception {
995995
}
996996
cache.scheduleSlotReleaser(slot2);
997997
Thread.sleep(2000);
998-
Assert.assertEquals(0, cluster.getDataNodes().get(0)
999-
.getShortCircuitRegistry().getShmNum() == 0);
998+
Assert.assertEquals(0,
999+
cluster.getDataNodes().get(0).getShortCircuitRegistry().getShmNum());
10001000
Assert.assertEquals(0, cache.getDfsClientShmManager().getShmNum());
10011001
} finally {
10021002
cluster.shutdown();

0 commit comments

Comments
 (0)