Skip to content

Commit

Permalink
Fix: Fix redundant call to truncateDirtyTables (#20)
Browse files Browse the repository at this point in the history
The truncation was done twice at test start : 1 when through sniffer 
start and 1 when test start.
  • Loading branch information
liqueurdetoile authored and Juan Pablo Ramirez committed Feb 4, 2021
1 parent ba9ca18 commit 48a35fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Sniffer/BaseTriggerBasedTableSniffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/
namespace CakephpTestSuiteLight\Sniffer;


use Cake\Database\Exception;
use Cake\Datasource\ConnectionInterface;

Expand Down Expand Up @@ -129,7 +128,6 @@ public function cleanAllTables()
if ($this->isInTempMode()) {
$this->markAllTablesAsDirty();
}
$this->truncateDirtyTables();
}

/**
Expand Down Expand Up @@ -211,4 +209,4 @@ public function isInMainMode(): bool
{
return ($this->getMode() === self::PERM_MODE);
}
}
}

0 comments on commit 48a35fb

Please sign in to comment.