From 8618d65fad70308b8a5e438c4cfc0a1c6c14eea6 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 30 Jan 2024 04:04:51 +0100 Subject: [PATCH] Carbon v3 support (#1380) * Carbon v3 support * wip * wip --- composer.json | 2 +- tests/Feature/SupervisorTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()