Make sure to flush

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2019-07-11 17:37:07 -07:00
parent d027ff7efd
commit b3f6997bc0

View File

@@ -436,6 +436,7 @@ func TestSystemAccountingWithLeafNodes(t *testing.T) {
nc.Publish("foo", m)
nc.Publish("bar", m)
}
nc.Flush()
// Now shutdown the leafnode server since this is where the event tracking should
// happen. Right now we do not track local clients to the leafnode server that