From f04e02cd25a947578e11bd74d7b0dd20c4746201 Mon Sep 17 00:00:00 2001 From: Jacky Date: Mon, 5 May 2025 13:25:55 +0000 Subject: [PATCH] fix(upgrader): remove test binary during commit restart process --- internal/upgrader/test_commit_restart.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/upgrader/test_commit_restart.go b/internal/upgrader/test_commit_restart.go index 1993c9fa..a3695930 100644 --- a/internal/upgrader/test_commit_restart.go +++ b/internal/upgrader/test_commit_restart.go @@ -87,11 +87,12 @@ func (u *Upgrader) TestCommitAndRestart() error { if runtime.GOOS != "windows" { _ = os.Remove(oldExe) + _ = os.Remove(testBinaryPath) } // Wait for file to be written time.Sleep(1 * time.Second) - + // Gracefully restart risefront.Restart() return nil