Fix flapper, wait for sub to propagate

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2020-05-23 11:39:33 -07:00
parent b26d389d5e
commit 79ea95fe44

View File

@@ -1780,6 +1780,9 @@ func TestLeadNodeExportImportComplexSetup(t *testing.T) {
})
nc2.Flush()
// Wait for it to make it across.
time.Sleep(250 * time.Millisecond)
// Now send the request on the leaf node client.
if _, err := ncl.Request("import.request", []byte("fingers crossed"), 5500*time.Millisecond); err != nil {
if atomic.LoadInt32(&gotIt) == 0 {