mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 02:07:59 -07:00
The issue really was that the test was sharing remote options. The way options are used is not ideal since we reference the user provided options (but it is relied upon now in many tests and possibly users setups). The other side of the issue was that when no local account is specified in a "remote" specification, we set it to the global account, but that was done when creating the leafnode object (when soliciting), which in the case of the test could race with the second server doing the validation. In this PR we move the setting to global account during the validation, but also fixed the tests to not share the remote options configuration slice between the two servers. Resolves #4191 Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
91 KiB
91 KiB