diff --git a/src/test/java/hudson/plugins/ec2/EC2RetentionStrategyTest.java b/src/test/java/hudson/plugins/ec2/EC2RetentionStrategyTest.java index ce5e8766a..c86ac19a1 100644 --- a/src/test/java/hudson/plugins/ec2/EC2RetentionStrategyTest.java +++ b/src/test/java/hudson/plugins/ec2/EC2RetentionStrategyTest.java @@ -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 {