mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
Move Carbon::setTestNow() to the beginning of each test before creating test data. Previously, tests created servers using now() (real current time) and only afterwards called Carbon::setTestNow(), making sentinel_updated_at inconsistent with the test clock. This caused staleness calculations to use different timelines: - sentinel_updated_at was based on real time (e.g., Dec 2024) - Test execution time was frozen at 2025-01-15 Now all timestamps use the same frozen test time, making staleness checks predictable and tests reliable regardless of when they run. Affected tests (all 7 test cases in the file): - does not dispatch storage check when sentinel is in sync - dispatches storage check when sentinel is out of sync - dispatches storage check when sentinel is disabled - respects custom hourly storage check frequency when sentinel is out of sync - handles VALID_CRON_STRINGS mapping correctly when sentinel is out of sync - respects server timezone for storage checks when sentinel is out of sync - does not dispatch storage check outside schedule 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Service | ||
| ApplicationBuildpackCleanupTest.php | ||
| BuildpackSwitchCleanupTest.php | ||
| CheckTraefikVersionJobTest.php | ||
| CleanupRedisTest.php | ||
| CloudInitScriptTest.php | ||
| ConvertArraysTest.php | ||
| ConvertContainerEnvsToArray.php | ||
| ConvertingGitUrlsTest.php | ||
| CoolifyTaskRetryTest.php | ||
| DatabaseBackupCreationApiTest.php | ||
| DatabaseBackupJobTest.php | ||
| DeletesUserSessionsTest.php | ||
| DeploymentCancellationApiTest.php | ||
| DockerCustomCommandsTest.php | ||
| EnvironmentVariableSharedSpacingTest.php | ||
| ExecuteContainerCommandTest.php | ||
| GithubAppsListApiTest.php | ||
| GithubSourceChangeTest.php | ||
| GithubSourceCreateTest.php | ||
| HetznerServerCreationTest.php | ||
| IpAllowlistTest.php | ||
| LoginRateLimitIPTest.php | ||
| MultilineEnvironmentVariableTest.php | ||
| ServerPatchCheckNotificationTest.php | ||
| ServerSettingSentinelRestartTest.php | ||
| ServerSettingWasChangedTest.php | ||
| ServerStorageCheckIndependenceTest.php | ||
| ServiceFqdnUpdatePathTest.php | ||
| StartupExecutionCleanupTest.php | ||
| TeamInvitationEmailNormalizationTest.php | ||
| TeamInvitationPrivilegeEscalationTest.php | ||
| TeamPolicyTest.php | ||
| TrustHostsMiddlewareTest.php | ||
| Utf8HandlingTest.php | ||