From e2ae5e0bd90d06ebfd891f6792f4a76a8f453436 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Mon, 16 Dec 2024 17:34:42 -0800 Subject: [PATCH] Simplify assertion --- src/test/java/hudson/plugins/ec2/EC2RetentionStrategyTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {