Skip to content

Commit

Permalink
test upgrade.
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Drobnjakovic <[email protected]>
  • Loading branch information
Tjofil committed Jan 27, 2023
1 parent 5a7572e commit 02e13ea
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,20 @@ public void testShardBulkParseAndQuery() throws Exception {
Arrays.asList("sum", "sum"),
Arrays.asList("Operation"));

boolean shardbulkEncountered = false;

for (Record record : res) {
if (PerformanceAnalyzerMetrics.sShardBulkPath.equals(record.get("Operation"))) {
assertNotNull(record.get("ShardEvents"));
assertNotNull(record.get("ShardBulkDocs"));
assertTrue((Double) record.get("ShardEvents") >= 1.0);
assertTrue((Double) record.get("ShardBulkDocs") >= 1.0);
shardbulkEncountered = true;
}
}

assertTrue(shardbulkEncountered);

mp.trimOldSnapshots();
mp.trimOldMetricsDBFiles();
mp.deleteDBs();
Expand Down

0 comments on commit 02e13ea

Please sign in to comment.