소스 검색

fix(upgrader): remove test binary during commit restart process

Jacky 19 시간 전
부모
커밋
f04e02cd25
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      internal/upgrader/test_commit_restart.go

+ 2 - 1
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