deps: update Go to v1.24.2 (#3750)

* deps: update Go to v1.24.2
* tests: replace context.Background() with t.Context()

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2025-04-09 10:54:28 +02:00 committed by GitHub
parent a7f9561a3d
commit 4e5c213b4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 287 additions and 316 deletions

View file

@ -172,7 +172,7 @@ func TestGetInstance(t *testing.T) {
instanceAPI: &tc.instanceAPI,
subnetAPI: &tc.subnetAPI,
}
instance, err := cloud.getInstance(context.Background(), tc.projectID, tc.zone, tc.instanceName)
instance, err := cloud.getInstance(t.Context(), tc.projectID, tc.zone, tc.instanceName)
if tc.wantErr {
assert.Error(err)
@ -474,7 +474,7 @@ func TestGetLoadbalancerEndpoint(t *testing.T) {
regionalForwardingRulesAPI: &tc.regionalForwardingRulesAPI,
}
gotHost, gotPort, err := cloud.GetLoadBalancerEndpoint(context.Background())
gotHost, gotPort, err := cloud.GetLoadBalancerEndpoint(t.Context())
if tc.wantErr {
assert.Error(err)
return
@ -810,7 +810,7 @@ func TestList(t *testing.T) {
zoneAPI: &tc.zoneAPI,
}
instances, err := cloud.List(context.Background())
instances, err := cloud.List(t.Context())
if tc.wantErr {
assert.Error(err)
return
@ -915,7 +915,7 @@ func TestZones(t *testing.T) {
assert.Empty(cloud.zoneCache)
gotZones, err := cloud.zones(context.Background(), "someProject", "someregion-west3")
gotZones, err := cloud.zones(t.Context(), "someProject", "someregion-west3")
if tc.wantErr {
assert.Error(err)
return
@ -1066,7 +1066,7 @@ func TestUID(t *testing.T) {
instanceAPI: &tc.instanceAPI,
}
uid, err := cloud.UID(context.Background())
uid, err := cloud.UID(t.Context())
if tc.wantErr {
assert.Error(err)
return
@ -1170,7 +1170,7 @@ func TestInitSecretHash(t *testing.T) {
instanceAPI: &tc.instanceAPI,
}
initSecretHash, err := cloud.InitSecretHash(context.Background())
initSecretHash, err := cloud.InitSecretHash(t.Context())
if tc.wantErr {
assert.Error(err)
return