update test to remove 100ms wait time since the handleMessage publishes synchronously
This commit is contained in:
parent
379aa3c2d1
commit
1a4f906348
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue