Skip to content

Commit

Permalink
Simplify assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Dec 17, 2024
1 parent 5f53f07 commit e2ae5e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public void testOnUsageCountRetention() throws Exception {
}
// As we want to terminate agent both for usageCount 1 & 0 - setting this to true
if (usageCount == 1 || usageCount == 0) {
assertEquals("Expected " + usageCount + " to be " + true, true, terminateCalled.get());
assertTrue("Expected " + usageCount + " to be " + true, terminateCalled.get());
// Reset the assumption
terminateCalled.set(false);
} else {
Expand Down

0 comments on commit e2ae5e0

Please sign in to comment.