Skip to content

Commit

Permalink
fix EventFnQueueOverflowPanicsWithNoLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Oct 18, 2023
1 parent 96edbbf commit d3bc69e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ func TestRequest_EventFnQueueOverflowPanicsWithNoLogger(t *testing.T) {
rq.jw.Logger = nil
tmr := time.NewTimer(testTimeout)

jid := jidForTag(rq.Request, Tag("bomb"))

defer tmr.Stop()
for {
select {
Expand All @@ -403,8 +405,7 @@ func TestRequest_EventFnQueueOverflowPanicsWithNoLogger(t *testing.T) {
return
case <-tmr.C:
is.Fail()
default:
rq.Jaws.Broadcast(Message{Dest: Tag("bomb"), What: what.Input})
case rq.inCh <- wsMsg{Jid: jid, What: what.Input}:
}
}
}
Expand Down

0 comments on commit d3bc69e

Please sign in to comment.