Feature: Auto-update client

This commit is contained in:
M Essam Hamed
2025-09-01 15:13:12 +03:00
parent 21368b38d9
commit bc59749859
22 changed files with 1035 additions and 538 deletions
+3 -3
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()
})