mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fixed typos and updates checkOrigin() doc
Also fixed two flappers Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user