Remove testing.T.Context() as it's added in go1.24

This commit is contained in:
M Essam Hamed
2025-09-08 12:07:06 +03:00
parent ecf1e9013e
commit ec47a84afe

View File

@@ -67,7 +67,7 @@ func Test_LatestVersion(t *testing.T) {
return nil
}
m.currentVersion = c.daemonVersion
m.Start(t.Context())
m.Start(context.Background())
m.SetVersion("latest")
var triggeredInit bool
select {
@@ -179,7 +179,7 @@ func Test_HandleUpdate(t *testing.T) {
}
m.currentVersion = c.daemonVersion
m.Start(t.Context())
m.Start(context.Background())
m.SetVersion(c.expectedVersion)
var updateTriggered bool