Skip to content

Commit

Permalink
Merge pull request #5223 from sbueringer/pr-fix-workload-test
Browse files Browse the repository at this point in the history
🐛  Fix flaky TestGetWorkloadCluster test
  • Loading branch information
k8s-ci-robot authored Sep 10, 2021
2 parents 846b09b + 6baf3eb commit a7fa32b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controlplane/kubeadm/internal/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ func TestGetWorkloadCluster(t *testing.T) {
}(o)
}

// Note: The API reader is intentionally used instead of the regular (cached) client
// to avoid test failures when the local cache isn't able to catch up in time.
m := Management{
Client: env,
Client: env.GetAPIReader(),
Tracker: tracker,
}

Expand Down

0 comments on commit a7fa32b

Please sign in to comment.