mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #90927 from BenTheElder/unit-shmunit
remove oom TestStartingWatcher ""unit"" test
This commit is contained in:
commit
751fe16b93
@ -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
|
// TestWatcherRecordsEventsForOomEvents ensures that our OomInstances coming
|
||||||
// from `StreamOoms` are translated into events in our recorder.
|
// from `StreamOoms` are translated into events in our recorder.
|
||||||
func TestWatcherRecordsEventsForOomEvents(t *testing.T) {
|
func TestWatcherRecordsEventsForOomEvents(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user