chore: fix misspelling

This commit is contained in:
Yordis Prieto Lazo
2022-12-18 22:19:16 -05:00
parent 2f959a773c
commit 0842910049
16 changed files with 31 additions and 30 deletions

View File

@@ -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:

View File

@@ -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())
}