Skip to content

Commit

Permalink
Fix race condition in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Apr 15, 2019
1 parent 40b6bbe commit 91756b2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -128,7 +128,7 @@ public void test110UnassignRoles() throws Exception {

private void deleteAssignment(PrismObject<UserType> user, int index, Task task, OperationResult result) {
try {
login(userAdministrator);
login(userAdministrator.clone()); // without cloning there are conflicts on login->getPrincipal->recompute
@SuppressWarnings({ "unchecked", "raw" })
ObjectDelta<UserType> objectDelta = deltaFor(UserType.class)
.item(FocusType.F_ASSIGNMENT).delete(user.asObjectable().getAssignment().get(index).clone())
Expand Down

0 comments on commit 91756b2

Please sign in to comment.