Skip to content

Commit

Permalink
fixing issues with sf 2.7 and slow index creation (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimaz authored Feb 10, 2017
1 parent ce7bce4 commit d5475cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Functional/Result/DocumentIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 2 additions & 1 deletion Tests/Functional/Service/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d5475cd

Please sign in to comment.