cockroachdb / cockroach-go

Packages for go clients.
Apache License 2.0
159 stars 70 forks source link

Define CockroachBinaryPath option for testserver. #134

Closed gonzojive closed 2 years ago

gonzojive commented 2 years ago

CockroachBinaryPath is a TestServer option that can be passed to NewTestServer to specify the path of the cockroach binary. This can be used to avoid downloading cockroach if running tests in an environment with no internet connection, for instance.

cockroach-teamcity commented 2 years ago

This change is Reviewable

gonzojive commented 2 years ago

thanks for your contribution! could you add a test for this?

I added a basic test.

gonzojive commented 2 years ago

Done.