From 809f88a03a129c4cb53c879dda2503786be440d1 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Fri, 5 Feb 2016 08:32:11 -0800 Subject: [PATCH] subs could be random --- test/routes_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/routes_test.go b/test/routes_test.go index eabb5105..9e7ab4dd 100644 --- a/test/routes_test.go +++ b/test/routes_test.go @@ -239,8 +239,9 @@ func TestRouteOnlySendOnce(t *testing.T) { clientSend("PING\r\n") clientExpect(pongRe) - matches := expectMsgs(1) - checkMsg(t, matches[0], "foo", "RSID:2:1", "", "2", "ok") + expectMsgs(1) + routeSend("PING\r\n") + routeExpect(pongRe) } func TestRouteQueueSemantics(t *testing.T) {