1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Disregard race condition by increasing tolerance in e107pluginTest

e107pluginTest::testXmlSiteLinks() ignores the primary key and model
order because another test could have inserted records before this test.
This commit is contained in:
Nick Liu
2018-11-01 19:09:48 -05:00
parent aa458ee7d3
commit b9f794b1a9

View File

@@ -345,6 +345,13 @@
'link_owner' => 'multilan', 'link_owner' => 'multilan',
); );
$unimportant_keys = ['link_id', 'link_order'];
foreach ($unimportant_keys as $unimportant_key)
{
unset($expected[$unimportant_key]);
unset($actual[$unimportant_key]);
}
$this->assertEquals($expected,$actual); $this->assertEquals($expected,$actual);
$status = $this->ep->XmlSiteLinks('uninstall',$plugVars); $status = $this->ep->XmlSiteLinks('uninstall',$plugVars);