diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-07-29 16:45:00 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-07-29 16:45:00 -0230 |
| commit | e7bba51bb8bb41c462873c613bc6d4cf402a58d1 (patch) | |
| tree | a94f91656e52aaf5c8edb5aed02679bae8efab11 /lulu_test.go | |
| parent | 95acc996fdcc6221741a3072633c5753e88d0f07 (diff) | |
| download | lulu-e7bba51bb8bb41c462873c613bc6d4cf402a58d1.zip | |
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.
Diffstat (limited to 'lulu_test.go')
| -rw-r--r-- | lulu_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 } |