Skip to content

Commit

Permalink
Add rest.Config to fake context in SetupFakeContext (#2847)
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr authored Oct 2, 2023
1 parent 0736c74 commit 294e777
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reconciler/testing/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ func SetupFakeContextWithCancel(t testing.TB, fs ...func(context.Context) contex
for _, f := range fs {
ctx = f(ctx)
}
ctx, is := injection.Fake.SetupInformers(ctx, &rest.Config{})
ctx = injection.WithConfig(ctx, &rest.Config{})

ctx, is := injection.Fake.SetupInformers(ctx, injection.GetConfig(ctx))
return ctx, c, is
}

Expand Down

0 comments on commit 294e777

Please sign in to comment.