Plumb contexts through commands
This is to prepare for otel support. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
9eb632dc7c
commit
5400a48aaf
@ -554,7 +554,8 @@ func TestUpdateSecretUpdateInPlace(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
updatedSecrets, err := getUpdatedSecrets(apiClient, flags, secrets)
|
||||
ctx := context.Background()
|
||||
updatedSecrets, err := getUpdatedSecrets(ctx, apiClient, flags, secrets)
|
||||
|
||||
assert.NilError(t, err)
|
||||
assert.Assert(t, is.Len(updatedSecrets, 1))
|
||||
@ -1231,7 +1232,8 @@ func TestUpdateGetUpdatedConfigs(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
finalConfigs, err := getUpdatedConfigs(fakeClient, flags, containerSpec)
|
||||
ctx := context.Background()
|
||||
finalConfigs, err := getUpdatedConfigs(ctx, fakeClient, flags, containerSpec)
|
||||
assert.NilError(t, err)
|
||||
|
||||
// ensure that the finalConfigs consists of all of the expected
|
||||
|
||||
Reference in New Issue
Block a user