Skip to content

Commit

Permalink
fixes disabling listeners in replay stream command
Browse files Browse the repository at this point in the history
  • Loading branch information
mixxx73 committed Feb 18, 2019
1 parent 68100bd commit b8b08ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/Command/ReplayStreamCommandSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function it_can_replay_all_messages(
$output->isDecorated()->shouldBeCalled();
$output->getVerbosity()->shouldBeCalled();

$eventBus->disableListeners()->shouldBeCalled();
$eventBus->dispatch(Argument::any())->shouldBeCalled();

$this->execute($input, $output);
Expand Down
1 change: 1 addition & 0 deletions src/Command/ReplayStreamCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
$this->eventBus->disableListeners();
$output->writeln('<fg=green>[chgst]</> Replaying all events in the event stream');

$progressBar = new ProgressBar($output, $this->batchSize);
Expand Down

0 comments on commit b8b08ea

Please sign in to comment.