mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-24 15:55:17 -04:00
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:
parent
a7f9561a3d
commit
4e5c213b4d
112 changed files with 287 additions and 316 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue