test(channels): normalize manager outbound test message
This commit is contained in:
parent
27db03e5ca
commit
a827d01d7c
1 changed files with 2 additions and 2 deletions
|
|
@ -175,11 +175,11 @@ func TestStartAll_PartialFailure_StartsSuccessfulWorkers(t *testing.T) {
|
||||||
|
|
||||||
pubCtx, pubCancel := context.WithTimeout(context.Background(), 2*time.Second)
|
pubCtx, pubCancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||||
defer pubCancel()
|
defer pubCancel()
|
||||||
if err := m.bus.PublishOutbound(pubCtx, bus.OutboundMessage{
|
if err := m.bus.PublishOutbound(pubCtx, testOutboundMessage(bus.OutboundMessage{
|
||||||
Channel: "good",
|
Channel: "good",
|
||||||
ChatID: "chat-1",
|
ChatID: "chat-1",
|
||||||
Content: "hello",
|
Content: "hello",
|
||||||
}); err != nil {
|
})); err != nil {
|
||||||
t.Fatalf("PublishOutbound() error = %v", err)
|
t.Fatalf("PublishOutbound() error = %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue