Skip to content

Commit 8ef271f

Browse files
authored
[ADDENDUM] HBASE-29223 Fix TestMasterStatusUtil (#7416)
TestMasterStatusUtil.testGetFragmentationInfoTurnedOn failed in master nightly build Signed-off-by: Nihal Jain <[email protected]> Signed-off-by: Duo Zhang <[email protected]>
1 parent 9c16588 commit 8ef271f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/master/http/TestMasterStatusUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package org.apache.hadoop.hbase.master.http;
1919

2020
import static org.junit.Assert.assertEquals;
21+
import static org.junit.Assert.assertFalse;
2122
import static org.junit.Assert.assertNotNull;
2223
import static org.junit.Assert.assertNull;
2324

@@ -203,7 +204,7 @@ public void testGetFragmentationInfoTurnedOn() throws IOException {
203204
conf.setBoolean("hbase.master.ui.fragmentation.enabled", true);
204205
Map<String, Integer> fragmentationInfo = MasterStatusUtil.getFragmentationInfo(master, conf);
205206
assertNotNull(fragmentationInfo);
206-
assertEquals(1, fragmentationInfo.size());
207+
assertFalse(fragmentationInfo.isEmpty());
207208
}
208209

209210
@Test

0 commit comments

Comments
 (0)