Commit a0038ab1 by Carsten Brandt

elasticsearch activefixture, ensure data is flushed

this is needed to ensure search works immediately after the insert.
parent d97f5edf
...@@ -111,6 +111,8 @@ class ActiveFixture extends BaseActiveFixture ...@@ -111,6 +111,8 @@ class ActiveFixture extends BaseActiveFixture
} }
$this->data[$alias] = $row; $this->data[$alias] = $row;
} }
// ensure all data is flushed and immediately available in the test
$this->db->createCommand()->flushIndex($this->index);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment