mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 22:14:26 +00:00
fix(upgrade): handle status polling after older release restarts
Treat recovered health checks and polling errors as successful completion when older target releases cannot report upgrade status.
This commit is contained in:
1 parent
6492d08136
commit
8576214a6d
3 files changed
+43
-1
No files matched your search
@@ -139,6 +139,16 @@ it('uses the public health endpoint only for liveness during an upgrade', functi
|
||||
->not->toContain('response.headers.get');
|
||||
});
|
||||
|
||||
it('finishes after health recovers from observed downtime for older target releases', function () {
|
||||
$upgradeView = file_get_contents(__DIR__.'/../../resources/views/livewire/upgrade.blade.php');
|
||||
|
||||
expect($upgradeView)
|
||||
->toContain("data.status === 'none' && this.instanceWentDown")
|
||||
->toContain('if (this.instanceWentDown) {')
|
||||
->toContain('this.showSuccess();')
|
||||
->toContain('return;');
|
||||
});
|
||||
|
||||
it('starts the upgrade after the Livewire response so status polling is not blocked', function () {
|
||||
$upgradeComponent = file_get_contents(__DIR__.'/../../app/Livewire/Upgrade.php');
|
||||
|
||||
|
||||
Reference in new issue
Block a user