Fix misc static check issues

This commit is contained in:
Tim Allclair
2019-08-08 18:07:03 -07:00
parent 3f510c69f6
commit 6510d26b6a
22 changed files with 54 additions and 55 deletions

View File

@@ -538,6 +538,7 @@ func TestUpdateExistingNodeStatusTimeout(t *testing.T) {
kubelet := testKubelet.kubelet
kubelet.kubeClient = nil // ensure only the heartbeat client is used
kubelet.heartbeatClient, err = clientset.NewForConfig(config)
require.NoError(t, err)
kubelet.onRepeatedHeartbeatFailure = func() {
atomic.AddInt64(&failureCallbacks, 1)
}