Skip to content

Commit

Permalink
Fix ability to disable slow reporting on a single test case
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkary committed Apr 30, 2021
1 parent eff89f6 commit fd23359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpeedTrapListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function endTestSuite(TestSuite $suite): void
*/
protected function isSlow(int $time, int $slowThreshold): bool
{
return $time && $time >= $slowThreshold;
return $slowThreshold && $time >= $slowThreshold;
}

/**
Expand Down

0 comments on commit fd23359

Please sign in to comment.