From e7bba51bb8bb41c462873c613bc6d4cf402a58d1 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 29 Jul 2026 16:45:00 -0230 Subject: sandbox and production client constructors Previously this was a package-level configuration with Sandbox() and Production() controlling the global ApiUrl variable. Now it's controlled per-client. --- lulu_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lulu_test.go') diff --git a/lulu_test.go b/lulu_test.go index 063d5aa..6791680 100644 --- a/lulu_test.go +++ b/lulu_test.go @@ -29,17 +29,16 @@ var ( func TestMain(m *testing.M) { flag.BoolVar(&Debug, "d", false, "Print debug info to stderr.") flag.Parse() - Sandbox() m.Run() } -func newClient(t *testing.T) *Client { +func tNewClient(t *testing.T) *Client { t.Helper() creds := Credentials{ Key: strings.TrimSpace(clientKey), Secret: strings.TrimSpace(clientSecret), } - c, err := NewClient(t.Context(), creds) + c, err := NewSandboxClient(t.Context(), creds) require.NoError(t, err) return c } -- cgit v1.2.3