Fixed typos and updates checkOrigin() doc

Also fixed two flappers

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2021-05-11 19:36:46 -06:00
parent da91b06218
commit 854cc15ddb
3 changed files with 12 additions and 6 deletions

View File

@@ -427,11 +427,15 @@ func TestLeafNodeMsgDelivery(t *testing.T) {
}
func TestLeafNodeAndRoutes(t *testing.T) {
srvA, optsA := RunServerWithConfig("./configs/srv_a_leaf.conf")
srvB, optsB := RunServerWithConfig("./configs/srv_b.conf")
checkClusterFormed(t, srvA, srvB)
optsA := LoadConfig("./configs/srv_a_leaf.conf")
optsA.DisableShortFirstPing = true
optsB := LoadConfig("./configs/srv_b.conf")
optsB.DisableShortFirstPing = true
srvA := RunServer(optsA)
defer srvA.Shutdown()
srvB := RunServer(optsB)
defer srvB.Shutdown()
checkClusterFormed(t, srvA, srvB)
lc := createLeafConn(t, optsA.LeafNode.Host, optsA.LeafNode.Port)
defer lc.Close()