Skip to content

Commit

Permalink
Fix test with new ackFunc stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alsm committed Oct 30, 2018
1 parent 9bcc1fb commit 9190d1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions unit_router_test.go
Expand Up @@ -269,8 +269,7 @@ func Test_MatchAndDispatch(t *testing.T) {
router, stopper := newRouter()
router.addRoute("a", cb)

router.matchAndDispatch(msgs, true, nil)

router.matchAndDispatch(msgs, true, &client{oboundP: make(chan *PacketAndToken, 100)})
msgs <- pub

<-calledback
Expand Down Expand Up @@ -302,7 +301,7 @@ func Test_SharedSubscription_MatchAndDispatch(t *testing.T) {
router, stopper := newRouter()
router.addRoute("$share/az1/a", cb)

router.matchAndDispatch(msgs, true, nil)
router.matchAndDispatch(msgs, true, &client{oboundP: make(chan *PacketAndToken, 100)})

msgs <- pub

Expand Down

0 comments on commit 9190d1f

Please sign in to comment.