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:
parent
aa458ee7d3
commit
b9f794b1a9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user