This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 578191d287 Improve test after CoPilot review
578191d287 is described below

commit 578191d2877d0dbea1b30dedefc5918b8bf560f0
Author: Mark Thomas <[email protected]>
AuthorDate: Fri May 1 13:22:49 2026 +0100

    Improve test after CoPilot review
---
 test/org/apache/catalina/realm/TestLockoutRealm.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/realm/TestLockoutRealm.java 
b/test/org/apache/catalina/realm/TestLockoutRealm.java
index 9148ee6f91..d859fc85b4 100644
--- a/test/org/apache/catalina/realm/TestLockoutRealm.java
+++ b/test/org/apache/catalina/realm/TestLockoutRealm.java
@@ -106,8 +106,12 @@ public class TestLockoutRealm {
         // Should not be locked yet
         p = realm.authenticate(USER_NAME, PASSWORD);
         Assert.assertNotNull(p);
-        // Should be locked now
+
+        p = realm.authenticate(USER_NAME, "wrong");
         p = realm.authenticate(USER_NAME, "wrong");
+
+        // Both should be locked now
+        p = realm.authenticate(USER_NAME, PASSWORD);
         Assert.assertNull(p);
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to