mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-10 11:31:58 +08:00
Minor fixes
This commit is contained in:
parent
d98ecdebb4
commit
8117ce8972
@ -7,7 +7,6 @@ package base
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
@ -590,10 +589,3 @@ type Broker interface {
|
||||
PublishCancelation(id string) error
|
||||
Close() error
|
||||
}
|
||||
|
||||
// List of canonical errors.
|
||||
var (
|
||||
ErrNotFound = errors.New("not found")
|
||||
ErrFailedPrecondition = errors.New("failed precondition")
|
||||
ErrInternal = errors.New("internal error")
|
||||
)
|
||||
|
@ -112,7 +112,7 @@ func TestEnqueue(t *testing.T) {
|
||||
}
|
||||
deadline := r.client.HGet(taskKey, "deadline").Val() // "deadline" field
|
||||
if want := strconv.Itoa(int(tc.msg.Deadline)); deadline != want {
|
||||
t.Errorf("deadline field under task-ke is set to %v, want %v", deadline, want)
|
||||
t.Errorf("deadline field under task-key is set to %v, want %v", deadline, want)
|
||||
}
|
||||
|
||||
// Check queue is in the AllQueues set.
|
||||
|
Loading…
Reference in New Issue
Block a user