The "latest" was not working and would always use the one from nats.c.deps.
As for "main", I noticed lately that sometimes, we would get a binary of size 0, which would make all tests using the nats-server to fail. So make sure that we can run the server and get a valid version string. If not, repeat the test up to 5 times, otherwise fail the run.
@levb If you get a chance tomorrow (01/16/2024), could you review this one? Without this, the run that uses main will fail more often than not because the download of the binary fails, so I added few tries.
The "latest" was not working and would always use the one from nats.c.deps. As for "main", I noticed lately that sometimes, we would get a binary of size 0, which would make all tests using the nats-server to fail. So make sure that we can run the server and get a valid version string. If not, repeat the test up to 5 times, otherwise fail the run.
Signed-off-by: Ivan Kozlovic ivan@synadia.com