Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Okipa committed Sep 12, 2020
1 parent 27fa983 commit 190df9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Unit/SupervisorMonitoringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function testDefaultDownProcessesCallbackExceptionSingularMessage()
{
$downProcesses = collect(['laravel-queue-testing-worker:*']);
$callback = (new SupervisorDowntimeNotifier)->getDownProcessesCallback();
$this->expectExceptionMessage('Down supervisor process detected: "laravel-queue-testing-worker:*".');
$this->expectExceptionMessage('1 supervisor down process has been detected: "laravel-queue-testing-worker:*".');
$callback($downProcesses);
}

Expand All @@ -342,12 +342,12 @@ public function testDefaultDownProcessesCallbackExceptionPluralMessage()
'laravel-queue-testing-worker:process-2',
]);
$callback = (new SupervisorDowntimeNotifier)->getDownProcessesCallback();
$this->expectExceptionMessage('Down supervisor processes detected: "laravel-queue-testing-worker:process-1", '
$this->expectExceptionMessage('2 supervisor down processes have been detected: '
. '"laravel-queue-testing-worker:process-1", '
. '"laravel-queue-testing-worker:process-2".');
$callback($downProcesses);
}


public function testSimulationNotification()
{
config()->set('supervisor-downtime-notifier.callbacks.down_processes', null);
Expand Down

0 comments on commit 190df9c

Please sign in to comment.