Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhaobo99 committed Jan 28, 2024
1 parent b98e0e1 commit c21d0d7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ public void testNNRpcMetricsWithNonHA() throws IOException {
DataNode dn = cluster.getDataNodes().get(0);
MetricsRecordBuilder rb = getMetrics(dn.getMetrics().name());
assertCounter("HeartbeatsNumOps", 1L, rb);
cluster.close();
}
@Test(timeout = 60000)
public void testSlowMetrics() throws Exception {
Expand Down Expand Up @@ -688,6 +689,7 @@ public void testNNRpcMetricsWithHA() throws IOException {
assertCounter("HeartbeatsForminidfs-ns-nn1NumOps", 1L, rb);
assertCounter("HeartbeatsForminidfs-ns-nn2NumOps", 1L, rb);
assertCounter("HeartbeatsNumOps", 2L, rb);
cluster.close();
}

@Test
Expand Down

0 comments on commit c21d0d7

Please sign in to comment.