mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-05-05 11:03:05 +00:00
fix: nil msg
This commit is contained in:
parent
627fbbab6e
commit
e69d6e61dd
@ -117,6 +117,9 @@ func Test5000(t *testing.T) {
|
||||
case <-ticker.C:
|
||||
require.Fail(t, "Timeout Sub1")
|
||||
case msg := <-sub1.C:
|
||||
if msg == nil {
|
||||
return
|
||||
}
|
||||
if bytes.Equal(msg.Message().Payload, maxMsgBytes) {
|
||||
return
|
||||
}
|
||||
@ -135,6 +138,9 @@ func Test5000(t *testing.T) {
|
||||
case <-ticker.C:
|
||||
require.Fail(t, "Timeout Sub2")
|
||||
case msg := <-sub2.C:
|
||||
if msg == nil {
|
||||
return
|
||||
}
|
||||
if bytes.Equal(msg.Message().Payload, maxMsgBytes) {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user