From 1a4f9063482313bdd898d539a675ef010405caba Mon Sep 17 00:00:00 2001 From: Christoforus Surjoputro Date: Mon, 23 Mar 2026 18:24:58 +0700 Subject: [PATCH] update test to remove 100ms wait time since the handleMessage publishes synchronously --- pkg/channels/telegram/telegram_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/channels/telegram/telegram_test.go b/pkg/channels/telegram/telegram_test.go index 49eab3ee3..fd189d9a7 100644 --- a/pkg/channels/telegram/telegram_test.go +++ b/pkg/channels/telegram/telegram_test.go @@ -9,7 +9,6 @@ import ( "path/filepath" "strings" "testing" - "time" "github.com/mymmrac/telego" ta "github.com/mymmrac/telego/telegoapi" @@ -671,7 +670,6 @@ func TestHandleMessage_EmptyContent_Ignored(t *testing.T) { select { case <-messageBus.InboundChan(): t.Fatal("Empty message should not be published to message bus") - case <-time.After(100 * time.Millisecond): - // nothing was published + default: } }