Skip to content

Commit d5475cd

Browse files
authored
fixing issues with sf 2.7 and slow index creation (#754)
1 parent ce7bce4 commit d5475cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Tests/Functional/Result/DocumentIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testIteration()
8787
*/
8888
public function testCurrentWithEmptyIterator()
8989
{
90-
$repo = $this->getManager('foo')->getRepository('AcmeFooBundle:Customer');
90+
$repo = $this->getManager('default')->getRepository('AcmeFooBundle:Customer');
9191
$search = $repo
9292
->createSearch()
9393
->addQuery(new MatchAllQuery());

Tests/Functional/Service/ManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ public function testRemoveException()
323323
public function testParseResultsWithDifferentResultTypes()
324324
{
325325
$fooManager = $this->getManager('foo');
326-
$defaultManager = $this->getManager();
326+
$defaultManager = $this->getManager('default');
327+
sleep(2); //Needs few seconds to manage index creation.
327328

328329
$repo = $fooManager->getRepository('AcmeBarBundle:Product');
329330
$search = $repo->createSearch();

0 commit comments

Comments
 (0)