Fix linter formatting in task status tests
This commit is contained in:
parent
992fb9885b
commit
6d1b315763
1 changed files with 18 additions and 3 deletions
|
|
@ -1019,7 +1019,10 @@ func TestHandleTaskStatusSend_EditsExisting(t *testing.T) {
|
||||||
w := &channelWorker{ch: ch, limiter: rate.NewLimiter(rate.Inf, 1)}
|
w := &channelWorker{ch: ch, limiter: rate.NewLimiter(rate.Inf, 1)}
|
||||||
|
|
||||||
// Pre-store task message
|
// Pre-store task message
|
||||||
m.taskMsgIDs.Store(taskStatusKey("test", "123", "task-abc"), statusMsgEntry{messageID: "task-msg-1", createdAt: time.Now()})
|
m.taskMsgIDs.Store(
|
||||||
|
taskStatusKey("test", "123", "task-abc"),
|
||||||
|
statusMsgEntry{messageID: "task-msg-1", createdAt: time.Now()},
|
||||||
|
)
|
||||||
|
|
||||||
msg := bus.OutboundMessage{
|
msg := bus.OutboundMessage{
|
||||||
Channel: "test",
|
Channel: "test",
|
||||||
|
|
@ -1531,8 +1534,20 @@ func TestHandleTaskStatusSend_DraftStreaming_IsolatedByChatThread(t *testing.T)
|
||||||
|
|
||||||
w := &channelWorker{ch: ch, limiter: rate.NewLimiter(rate.Inf, 1)}
|
w := &channelWorker{ch: ch, limiter: rate.NewLimiter(rate.Inf, 1)}
|
||||||
|
|
||||||
msgA := bus.OutboundMessage{Channel: "test", ChatID: "-100/10", Content: "A:10%", IsTaskStatus: true, TaskID: "shared-task"}
|
msgA := bus.OutboundMessage{
|
||||||
msgB := bus.OutboundMessage{Channel: "test", ChatID: "-100/20", Content: "B:10%", IsTaskStatus: true, TaskID: "shared-task"}
|
Channel: "test",
|
||||||
|
ChatID: "-100/10",
|
||||||
|
Content: "A:10%",
|
||||||
|
IsTaskStatus: true,
|
||||||
|
TaskID: "shared-task",
|
||||||
|
}
|
||||||
|
msgB := bus.OutboundMessage{
|
||||||
|
Channel: "test",
|
||||||
|
ChatID: "-100/20",
|
||||||
|
Content: "B:10%",
|
||||||
|
IsTaskStatus: true,
|
||||||
|
TaskID: "shared-task",
|
||||||
|
}
|
||||||
|
|
||||||
m.handleTaskStatusSend(context.Background(), "test", w, msgA)
|
m.handleTaskStatusSend(context.Background(), "test", w, msgA)
|
||||||
m.handleTaskStatusSend(context.Background(), "test", w, msgB)
|
m.handleTaskStatusSend(context.Background(), "test", w, msgB)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue