1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

Tests: Removed weird 17 rows threshold for clearing user_extended_struct

Should fix rare flaky
e107_user_extendedTest::testUserExtendedAllShortcode()
This commit is contained in:
Nick Liu 2021-03-31 01:48:07 -05:00
parent e261e4fb2d
commit 7cfc79d335
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -116,21 +116,9 @@
);
// clear the table.
$sql = e107::getDb();
/* $fieldCount = (int) $sql->count('user_extended_struct');
if($fieldCount > 17)
{
codecept_debug("Truncating user_extended_struct");
$sql->truncate('user_extended_struct');
}*/
$sql->truncate('user_extended_struct');
// Add a field of each type.
foreach($this->structTypes as $k=> $v)
{