From 43b22b452190a039ae07139f4518dfd34ea69663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20R?= Date: Mon, 13 Aug 2018 13:49:40 +0200 Subject: [PATCH] [Travis] Fix failure on Solr with all branches (#2416) Attempt at fixing the failure, the test involved is missing a `refreshSearch()` so attempting to add it to see if that is the culprit. As for why this pops up, probab ly beacause we now set config slightly different as of 1.5.3/1.5.4, we now also set auto soft commit time even for CI runs so might be something in regards to that. --- Repository/Tests/UserServiceTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Repository/Tests/UserServiceTest.php b/Repository/Tests/UserServiceTest.php index 087a51496..acea1d230 100644 --- a/Repository/Tests/UserServiceTest.php +++ b/Repository/Tests/UserServiceTest.php @@ -534,6 +534,8 @@ public function testMoveUserGroupDecrementsSubGroupCountOnOldParent() $userService->moveUserGroup($userGroup, $membersUserGroup); /* END: Use Case */ + $this->refreshSearch($repository); + $mainUserGroup = $userService->loadUserGroup($this->generateId('group', 4)); $this->assertEquals(5, $mainUserGroup->subGroupCount);