remove oom TestStartingWatcher ""unit"" test

This commit is contained in:
Benjamin Elder 2020-05-08 23:25:28 -07:00
parent 7d53ecee37
commit c6c68a73e1

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) {