mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
fix: retry option should not be used in parallel
This commit is contained in:
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace Pest\Plugins;
|
namespace Pest\Plugins;
|
||||||
|
|
||||||
use Pest\Contracts\Plugins\HandlesArguments;
|
use Pest\Contracts\Plugins\HandlesArguments;
|
||||||
|
use Pest\Exceptions\InvalidOption;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@ -22,6 +23,11 @@ final class Retry implements HandlesArguments
|
|||||||
return $arguments;
|
return $arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If running in parallel, we need to disable the retry plugin
|
||||||
|
if ($this->hasArgument('--parallel', $arguments)) {
|
||||||
|
throw new InvalidOption('The [--retry] option is not supported when running in parallel.');
|
||||||
|
}
|
||||||
|
|
||||||
$arguments = $this->popArgument('--retry', $arguments);
|
$arguments = $this->popArgument('--retry', $arguments);
|
||||||
|
|
||||||
$arguments = $this->pushArgument('--order-by=defects', $arguments);
|
$arguments = $this->pushArgument('--order-by=defects', $arguments);
|
||||||
|
|||||||
Reference in New Issue
Block a user