Skip to content

Commit

Permalink
Remove redundant assertion
Browse files Browse the repository at this point in the history
`assertNotNull` is redundant since we also do `assertEquals`.
  • Loading branch information
findepi committed Apr 6, 2022
1 parent 1662948 commit 615e3d9
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ private void waitForQueryToBeKilled(DistributedQueryRunner queryRunner)
boolean hasRunningQuery = false;
for (BasicQueryInfo info : queryRunner.getCoordinator().getQueryManager().getQueries()) {
if (info.getState() == FAILED) {
assertNotNull(info.getErrorCode());
assertEquals(info.getErrorCode(), CLUSTER_OUT_OF_MEMORY.toErrorCode());
return;
}
Expand Down

0 comments on commit 615e3d9

Please sign in to comment.