From d5475cddd9a38542454a25299d821d57a08ec607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simonas=20=C5=A0erlinskas?= Date: Fri, 10 Feb 2017 09:58:44 +0200 Subject: [PATCH] fixing issues with sf 2.7 and slow index creation (#754) --- Tests/Functional/Result/DocumentIteratorTest.php | 2 +- Tests/Functional/Service/ManagerTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/Functional/Result/DocumentIteratorTest.php b/Tests/Functional/Result/DocumentIteratorTest.php index 466c206e..b4da40be 100644 --- a/Tests/Functional/Result/DocumentIteratorTest.php +++ b/Tests/Functional/Result/DocumentIteratorTest.php @@ -87,7 +87,7 @@ public function testIteration() */ public function testCurrentWithEmptyIterator() { - $repo = $this->getManager('foo')->getRepository('AcmeFooBundle:Customer'); + $repo = $this->getManager('default')->getRepository('AcmeFooBundle:Customer'); $search = $repo ->createSearch() ->addQuery(new MatchAllQuery()); diff --git a/Tests/Functional/Service/ManagerTest.php b/Tests/Functional/Service/ManagerTest.php index c1ce7590..4ce3a900 100644 --- a/Tests/Functional/Service/ManagerTest.php +++ b/Tests/Functional/Service/ManagerTest.php @@ -323,7 +323,8 @@ public function testRemoveException() public function testParseResultsWithDifferentResultTypes() { $fooManager = $this->getManager('foo'); - $defaultManager = $this->getManager(); + $defaultManager = $this->getManager('default'); + sleep(2); //Needs few seconds to manage index creation. $repo = $fooManager->getRepository('AcmeBarBundle:Product'); $search = $repo->createSearch();