1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-28 08:12:42 +01: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
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -345,6 +345,13 @@
'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);
$status = $this->ep->XmlSiteLinks('uninstall',$plugVars);