flush immediately on creation

This commit is contained in:
Derek Collison
2016-05-22 15:04:47 -07:00
parent 67479ea4cd
commit a2d03fbf5a

View File

@@ -357,9 +357,11 @@ func TestConnzLastActivity(t *testing.T) {
nc := createClientConnSubscribeAndPublish(t)
defer nc.Close()
nc.Flush()
nc2 := createClientConnSubscribeAndPublish(t)
defer nc2.Close()
nc2.Flush()
pollConz := func() *Connz {
url := fmt.Sprintf("http://localhost:%d/", MONITOR_PORT)