From 23bee9507b1f8d3b9b2ba749fb70d72da326958b Mon Sep 17 00:00:00 2001 From: youngwendy <166624921+youngwendy@users.noreply.github.com> Date: Sun, 28 Apr 2024 20:45:40 +0800 Subject: [PATCH] chore: fix some typos in comments (#569) Signed-off-by: youngwendy --- runner/engine.go | 4 ++-- runner/engine_test.go | 2 +- runner/util_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runner/engine.go b/runner/engine.go index 8f573fe6..69db92d4 100644 --- a/runner/engine.go +++ b/runner/engine.go @@ -332,7 +332,7 @@ func (e *Engine) start() { } } - // cannot set buldDelay to 0, because when the write mutiple events received in short time + // cannot set buldDelay to 0, because when the write multiple events received in short time // it will start Multiple buildRuns: https://github.com/cosmtrek/air/issues/473 time.Sleep(e.config.buildDelay()) e.flushEvents() @@ -583,7 +583,7 @@ func (e *Engine) cleanup() { close(e.binStopCh) e.binStopCh = make(chan bool) }) - e.mainDebug("wating for close watchers..") + e.mainDebug("waiting for close watchers..") e.withLock(func() { for i := 0; i < int(e.watchers); i++ { diff --git a/runner/engine_test.go b/runner/engine_test.go index 98545e87..2521e308 100644 --- a/runner/engine_test.go +++ b/runner/engine_test.go @@ -614,7 +614,7 @@ func TestRun(t *testing.T) { engine.Stop() time.Sleep(time.Second * 1) assert.False(t, checkPortHaveBeenUsed(port)) - t.Logf("stoped") + t.Logf("stopped") } func checkPortConnectionRefused(port int) bool { diff --git a/runner/util_test.go b/runner/util_test.go index f1e1bb8f..275d5b78 100644 --- a/runner/util_test.go +++ b/runner/util_test.go @@ -224,7 +224,7 @@ func Test_killCmd_SendInterrupt_false(t *testing.T) { for _, line := range lines { _, err := strconv.Atoi(line) if err != nil { - t.Logf("failed to covert str to int %v", err) + t.Logf("failed to convert str to int %v", err) continue } _, err = exec.Command("ps", "-p", line, "-o", "comm= ").Output()