update test to remove 100ms wait time since the handleMessage publishes synchronously

This commit is contained in:
Christoforus Surjoputro 2026-03-23 18:24:58 +07:00
parent 379aa3c2d1
commit 1a4f906348

View file

@ -9,7 +9,6 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"testing" "testing"
"time"
"github.com/mymmrac/telego" "github.com/mymmrac/telego"
ta "github.com/mymmrac/telego/telegoapi" ta "github.com/mymmrac/telego/telegoapi"
@ -671,7 +670,6 @@ func TestHandleMessage_EmptyContent_Ignored(t *testing.T) {
select { select {
case <-messageBus.InboundChan(): case <-messageBus.InboundChan():
t.Fatal("Empty message should not be published to message bus") t.Fatal("Empty message should not be published to message bus")
case <-time.After(100 * time.Millisecond): default:
// nothing was published
} }
} }