make testclient threadsafe by guarding internal state with accessors
This commit is contained in:
@@ -53,7 +53,7 @@ func getRandomPodStatus() api.PodStatus {
|
||||
}
|
||||
|
||||
func verifyActions(t *testing.T, kubeClient client.Interface, expectedActions []string) {
|
||||
actions := kubeClient.(*testclient.Fake).Actions
|
||||
actions := kubeClient.(*testclient.Fake).Actions()
|
||||
if len(actions) != len(expectedActions) {
|
||||
t.Errorf("unexpected actions, got: %s expected: %s", actions, expectedActions)
|
||||
return
|
||||
|
Reference in New Issue
Block a user