Feature: Auto-update client

This commit is contained in:
M Essam Hamed
2025-07-30 20:57:23 +03:00
parent b3056d0937
commit 10dfc93b58
22 changed files with 1030 additions and 533 deletions

View File

@@ -25,7 +25,7 @@ func TestNewUpdate(t *testing.T) {
onUpdate := false
u := NewUpdate(httpAgent)
defer u.StopWatch()
u.SetOnUpdateListener(func() {
u.SetOnUpdateListener(func(_ string) {
onUpdate = true
wg.Done()
})
@@ -50,7 +50,7 @@ func TestDoNotUpdate(t *testing.T) {
onUpdate := false
u := NewUpdate(httpAgent)
defer u.StopWatch()
u.SetOnUpdateListener(func() {
u.SetOnUpdateListener(func(_ string) {
onUpdate = true
wg.Done()
})
@@ -75,7 +75,7 @@ func TestDaemonUpdate(t *testing.T) {
onUpdate := false
u := NewUpdate(httpAgent)
defer u.StopWatch()
u.SetOnUpdateListener(func() {
u.SetOnUpdateListener(func(_ string) {
onUpdate = true
wg.Done()
})