Add linter misspell (#530)

* Add linter misspell

* Fix spelling

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
Lukas
2021-11-24 02:01:12 +01:00
committed by GitHub
parent 25bf91bd37
commit 116c310820
19 changed files with 35 additions and 35 deletions

View File

@@ -411,13 +411,13 @@ func TestFifoCancel(t *testing.T) {
assert.NoError(t, q.PushAtOnce(noContext, []*Task{task2, task3, task1}))
_, _ = q.Poll(noContext, func(*Task) bool { return true })
assert.NoError(t, q.Error(noContext, task1.ID, fmt.Errorf("cancelled")))
assert.NoError(t, q.Error(noContext, task2.ID, fmt.Errorf("cancelled")))
assert.NoError(t, q.Error(noContext, task3.ID, fmt.Errorf("cancelled")))
assert.NoError(t, q.Error(noContext, task1.ID, fmt.Errorf("canceled")))
assert.NoError(t, q.Error(noContext, task2.ID, fmt.Errorf("canceled")))
assert.NoError(t, q.Error(noContext, task3.ID, fmt.Errorf("canceled")))
info := q.Info(noContext)
if len(info.Pending) != 0 {
t.Errorf("All pipelines should be cancelled")
t.Errorf("All pipelines should be canceled")
return
}
}

View File

@@ -10,8 +10,8 @@ import (
)
var (
// ErrCancel indicates the task was cancelled.
ErrCancel = errors.New("queue: task cancelled")
// ErrCancel indicates the task was canceled.
ErrCancel = errors.New("queue: task canceled")
// ErrNotFound indicates the task was not found in the queue.
ErrNotFound = errors.New("queue: task not found")