mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Update flapping test
We need to wait for the route close to be processed before attempting to recreate it. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -492,6 +492,9 @@ func TestRouteResendsLocalSubsOnReconnect(t *testing.T) {
|
||||
// Close and then re-open
|
||||
route.Close()
|
||||
|
||||
// Give some time for the route close to be processed before trying to recreate.
|
||||
checkNumRoutes(t, s, 0)
|
||||
|
||||
route = createRouteConn(t, opts.Cluster.Host, opts.Cluster.Port)
|
||||
defer route.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user