mirror of
https://github.com/pestphp/pest.git
synced 2026-12-06 07:42:17 +01:00
fix(tia): drop the results of every branch on environment drift (#2011)
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ceef9806c2
commit
0224b4238b
+1
-1
@@ -835,7 +835,7 @@ final class Tia implements AddsOutput, HandlesArguments, HandlesOriginalArgument
|
||||
implode(', ', $drift),
|
||||
));
|
||||
|
||||
$graph->clearResults($this->branch);
|
||||
$graph->clearResults();
|
||||
$graph->setFingerprint($current);
|
||||
$this->saveGraph($graph);
|
||||
$this->deleteState(self::KEY_COVERAGE_CACHE);
|
||||
|
||||
@@ -943,10 +943,11 @@ final class Graph
|
||||
$this->baselines[$branch]['tree'] = $tree;
|
||||
}
|
||||
|
||||
public function clearResults(string $branch): void
|
||||
public function clearResults(): void
|
||||
{
|
||||
$this->ensureBaseline($branch);
|
||||
$this->baselines[$branch]['results'] = [];
|
||||
foreach (array_keys($this->baselines) as $branch) {
|
||||
$this->baselines[$branch]['results'] = [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user