Disable Centrifugo in testing.
This commit is contained in:
parent
6a5276820b
commit
0c3fb7bd43
|
@ -12,7 +12,6 @@ final class Centrifugo
|
|||
{
|
||||
public const GLOBAL_TIME_CHANNEL = 'global:time';
|
||||
|
||||
|
||||
public function __construct(
|
||||
private readonly Environment $environment,
|
||||
private readonly Client $client,
|
||||
|
@ -21,7 +20,7 @@ final class Centrifugo
|
|||
|
||||
public function isSupported(): bool
|
||||
{
|
||||
return $this->environment->isDocker();
|
||||
return $this->environment->isDocker() && !$this->environment->isTesting();
|
||||
}
|
||||
|
||||
public function sendTime(): void
|
||||
|
|
|
@ -11,16 +11,16 @@ use Psr\Log\LoggerInterface;
|
|||
final class SendTimeOnSocketTask extends AbstractTask
|
||||
{
|
||||
public function __construct(
|
||||
private readonly Centrifugo $centrifugo,
|
||||
ReloadableEntityManagerInterface $em,
|
||||
LoggerInterface $logger,
|
||||
private readonly Centrifugo $centrifugo,
|
||||
) {
|
||||
parent::__construct($em, $logger);
|
||||
}
|
||||
|
||||
public static function getSchedulePattern(): string
|
||||
{
|
||||
return '* * * * *';
|
||||
return self::SCHEDULE_EVERY_MINUTE;
|
||||
}
|
||||
|
||||
public function run(bool $force = false): void
|
||||
|
|
Loading…
Reference in New Issue