mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-02 01:30:26 +00:00
chore: fix misspelling
This commit is contained in:
@@ -170,7 +170,7 @@ Jan 2 03:04:05 kernel: [2.000000] 3
|
||||
}
|
||||
}
|
||||
// The log channel should have already been drained
|
||||
// There could stil be future messages sent into the channel, but the chance is really slim.
|
||||
// There could still be future messages sent into the channel, but the chance is really slim.
|
||||
timeout := time.After(100 * time.Millisecond)
|
||||
select {
|
||||
case log := <-logCh:
|
||||
|
||||
@@ -66,7 +66,7 @@ func TestTranslate(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGoroutineLeak(t *testing.T) {
|
||||
orignal := runtime.NumGoroutine()
|
||||
original := runtime.NumGoroutine()
|
||||
w := NewJournaldWatcher(types.WatcherConfig{
|
||||
Plugin: "journald",
|
||||
PluginConfig: map[string]string{"source": "not-exist-service"},
|
||||
@@ -75,5 +75,5 @@ func TestGoroutineLeak(t *testing.T) {
|
||||
})
|
||||
_, err := w.Watch()
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, orignal, runtime.NumGoroutine())
|
||||
assert.Equal(t, original, runtime.NumGoroutine())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user