ilgrosso commented on code in PR #1411:
URL: https://github.com/apache/syncope/pull/1411#discussion_r3354734196
##########
fit/core-reference/src/test/java/org/apache/syncope/fit/core/AuthenticationITCase.java:
##########
@@ -353,9 +348,10 @@ public void checkUserSuspension() {
assertNotNull(e);
}
- assertEquals(3, USER_SERVICE.read(userKey).getFailedLogins());
+ userTO = USER_SERVICE.read(userTO.getKey());
+ assertEquals(2, userTO.getFailedLogins().intValue());
+ assertNotEquals("suspended", userTO.getStatus());
Review Comment:
The `status` value comes from the workflow definition in use, so it might
vary.
The cleanest check here is
```
assertFalse(userTO.isSuspended();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]