Skip to content

Commit bcd72e1

Browse files
committed
HBASE-29223 Improve assertion in TestMasterStatusUtil.testGetFragmentationInfoTurnedOn
1 parent 7ebbdf5 commit bcd72e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
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,6 +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);
207+
assertFalse(fragmentationInfo.isEmpty());
206208
}
207209

208210
@Test

0 commit comments

Comments
 (0)