Skip to content

Commit fb5d2b4

Browse files
bigkevmcdCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 52dff94 commit fb5d2b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rancher2/resource_rancher2_oidc_client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ func TestResourceRancher2OIDCClientUpdate(t *testing.T) {
385385

386386
ops := &fakeOIDCClientOperations{
387387
oidcClient: existing,
388+
byIDQueue: []*managementClient.OIDCClient{existing, updated},
388389
updateResult: updated,
389390
}
390-
// After Update, Read calls ByID again — return the updated client.
391-
// We reuse oidcClient for the Read; override with updated after first call.
392-
ops.oidcClient = updated
391+
// The first ByID returns the existing client and the post-update read
392+
// returns the updated client.
393393

394394
d := newResourceData()
395395
err := resourceRancher2OIDCClientUpdate(d, newGetter(ops))

0 commit comments

Comments
 (0)