From 53a990f4263a829e76f05fd691748cfdb387da4e Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Thu, 18 Jun 2020 16:13:17 -0600 Subject: [PATCH] Fixed flapper Signed-off-by: Ivan Kozlovic --- test/leafnode_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/leafnode_test.go b/test/leafnode_test.go index 300f653c..59e44dd7 100644 --- a/test/leafnode_test.go +++ b/test/leafnode_test.go @@ -1428,12 +1428,13 @@ func TestLeafNodeUserPermsForConnection(t *testing.T) { checkNoSubInterest(t, s, acc.GetName(), "bar", 20*time.Millisecond) // This one should. nc2.SubscribeSync("foo.22") - checkSubInterest(t, s, acc.GetName(), "foo.22", 20*time.Millisecond) + checkSubInterest(t, s, acc.GetName(), "foo.22", 100*time.Millisecond) // Capture everything. sub, _ := nc.SubscribeSync(">") nc.Flush() + checkSubInterest(t, sl, "$G", ">", 100*time.Millisecond) // Now check local pubs are not forwarded. nc2.Publish("baz.22", nil) m, err := sub.NextMsg(1 * time.Second)