fix test
This commit is contained in:
parent
dc573715c4
commit
ba25f4a898
|
|
@ -1641,7 +1641,6 @@ func (s *Server) installUpdate(w http.ResponseWriter, r *http.Request) error {
|
||||||
return fmt.Errorf("no update downloaded")
|
return fmt.Errorf("no update downloaded")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Send response before restarting
|
// Send response before restarting
|
||||||
response := map[string]any{
|
response := map[string]any{
|
||||||
"success": true,
|
"success": true,
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,6 @@ func (u *Updater) TriggerImmediateCheck() {
|
||||||
|
|
||||||
func (u *Updater) StartBackgroundUpdaterChecker(ctx context.Context, cb func(string) error) {
|
func (u *Updater) StartBackgroundUpdaterChecker(ctx context.Context, cb func(string) error) {
|
||||||
u.checkNow = make(chan struct{}, 1)
|
u.checkNow = make(chan struct{}, 1)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
// Don't blast an update message immediately after startup
|
// Don't blast an update message immediately after startup
|
||||||
time.Sleep(UpdateCheckInitialDelay)
|
time.Sleep(UpdateCheckInitialDelay)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue