diff --git a/composer.json b/composer.json index caa08811..91275675 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "illuminate/contracts": "^8.17|^9.0|^10.0|^11.0", "illuminate/queue": "^8.17|^9.0|^10.0|^11.0", "illuminate/support": "^8.17|^9.0|^10.0|^11.0", - "nesbot/carbon": "^2.17", + "nesbot/carbon": "^2.17|^3.0", "ramsey/uuid": "^4.0", "symfony/process": "^5.0|^6.0|^7.0", "symfony/error-handler": "^5.0|^6.0|^7.0" diff --git a/tests/Feature/SupervisorTest.php b/tests/Feature/SupervisorTest.php index 75d6e993..4b33f06e 100644 --- a/tests/Feature/SupervisorTest.php +++ b/tests/Feature/SupervisorTest.php @@ -449,7 +449,7 @@ public function test_auto_scaler_is_not_called_on_loop_during_cooldown() $supervisor->lastAutoScaled = $time; CarbonImmutable::setTestNow($time->addSeconds($supervisor->options->balanceCooldown + 0.01)); $supervisor->loop(); - $this->assertTrue($supervisor->lastAutoScaled->eq($time->addSeconds($supervisor->options->balanceCooldown))); + $this->assertTrue($supervisor->lastAutoScaled->eq($time->addSeconds($supervisor->options->balanceCooldown + 0.01))); } public function test_supervisor_with_duplicate_name_cant_be_started()