Skip to content

Commit aae0096

Browse files
committed
Revert ResolveToImage call signature
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
1 parent ac145b2 commit aae0096

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/task/generictaskhandler_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ func TestDoPrMutations(t *testing.T) {
161161
ror := func(namespace string) runneroptions.RunnerOptions {
162162
return runneroptions.RunnerOptions{
163163
ImagePullPolicy: runneroptions.IfNotPresentPull,
164-
ResolveToImage: func(image string) string {
165-
return image
164+
ResolveToImage: func(_ context.Context, image string) (string, error) {
165+
return image, nil
166166
},
167167
}
168168
}
@@ -214,8 +214,8 @@ func TestDoPrResourceMutations(t *testing.T) {
214214
ror := func(namespace string) runneroptions.RunnerOptions {
215215
return runneroptions.RunnerOptions{
216216
ImagePullPolicy: runneroptions.IfNotPresentPull,
217-
ResolveToImage: func(image string) string {
218-
return image
217+
ResolveToImage: func(_ context.Context, image string) (string, error) {
218+
return image, nil
219219
},
220220
}
221221
}

0 commit comments

Comments
 (0)