feat: add K2V_ENDPOINT env var
This commit is contained in:
parent
97bedfe1aa
commit
231423cd0b
3 changed files with 20 additions and 6 deletions
|
@ -13,8 +13,6 @@ import (
|
|||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
const endpoint = "http://127.0.0.1:3904"
|
||||
|
||||
type fixture struct {
|
||||
t testing.TB
|
||||
ctx context.Context
|
||||
|
@ -31,7 +29,7 @@ func newFixture(t testing.TB) (*fixture, context.Context) {
|
|||
|
||||
ctx := testContext(t)
|
||||
|
||||
cli := k2v.NewClient(endpoint, k2v.KeyFromEnv())
|
||||
cli := k2v.NewClient(k2v.EndpointFromEnv(), k2v.KeyFromEnv())
|
||||
t.Cleanup(cli.Close)
|
||||
|
||||
f := &fixture{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue