Merge pull request #90927 from BenTheElder/unit-shmunit

remove oom TestStartingWatcher ""unit"" test
This commit is contained in:
Kubernetes Prow Robot 2020-05-11 18:08:28 -07:00 committed by GitHub
commit 751fe16b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,17 +38,6 @@ func (fs *fakeStreamer) StreamOoms(outStream chan<- *oomparser.OomInstance) {
}
}
// TestStartingWatcher tests that the watcher, using the actual streamer
// and not the fake, starts successfully.
func TestStartingWatcher(t *testing.T) {
fakeRecorder := &record.FakeRecorder{}
node := &v1.ObjectReference{}
oomWatcher, err := NewWatcher(fakeRecorder)
assert.NoError(t, err)
assert.NoError(t, oomWatcher.Start(node))
}
// TestWatcherRecordsEventsForOomEvents ensures that our OomInstances coming
// from `StreamOoms` are translated into events in our recorder.
func TestWatcherRecordsEventsForOomEvents(t *testing.T) {