Commit f4e7b548 authored by Jeff Lowdermilk's avatar Jeff Lowdermilk

Merge pull request #10249 from mikedanese/unlink-test-libs

unlink testlibs from kube-apiserver and kubelet, remove test flags
parents 838ddba1 06c35a17
......@@ -17,8 +17,6 @@ limitations under the License.
package kubelet
import (
"testing"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
kubecontainer "github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/container"
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
......@@ -29,7 +27,7 @@ import (
type fakePodWorkers struct {
syncPodFn syncPodFnType
runtimeCache kubecontainer.RuntimeCache
t *testing.T
t TestingInterface
}
func (f *fakePodWorkers) UpdatePod(pod *api.Pod, mirrorPod *api.Pod, updateComplete func()) {
......@@ -43,3 +41,7 @@ func (f *fakePodWorkers) UpdatePod(pod *api.Pod, mirrorPod *api.Pod, updateCompl
}
func (f *fakePodWorkers) ForgetNonExistingPodWorkers(desiredPods map[types.UID]empty) {}
type TestingInterface interface {
Errorf(format string, args ...interface{})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment