Skip to content

Commit

Permalink
chore: fix some typos in comments (#569)
Browse files Browse the repository at this point in the history
Signed-off-by: youngwendy <clonefetch@outlook.com>
  • Loading branch information
youngwendy committed Apr 28, 2024
1 parent 70c53bd commit 23bee95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runner/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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++ {
Expand Down
2 changes: 1 addition & 1 deletion runner/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion runner/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 23bee95

Please sign in to comment.