|
@@ -87,11 +87,12 @@ func (u *Upgrader) TestCommitAndRestart() error {
|
|
|
|
|
|
if runtime.GOOS != "windows" {
|
|
if runtime.GOOS != "windows" {
|
|
_ = os.Remove(oldExe)
|
|
_ = os.Remove(oldExe)
|
|
|
|
+ _ = os.Remove(testBinaryPath)
|
|
}
|
|
}
|
|
|
|
|
|
// Wait for file to be written
|
|
// Wait for file to be written
|
|
time.Sleep(1 * time.Second)
|
|
time.Sleep(1 * time.Second)
|
|
-
|
|
|
|
|
|
+
|
|
// Gracefully restart
|
|
// Gracefully restart
|
|
risefront.Restart()
|
|
risefront.Restart()
|
|
return nil
|
|
return nil
|