mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-20 11:33:07 +02:00
Feature: Auto-update client
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
Reference in New Issue
Block a user