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. --- cover_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cover_test.go') diff --git a/cover_test.go b/cover_test.go index fe40b69..4659f38 100644 --- a/cover_test.go +++ b/cover_test.go @@ -41,7 +41,7 @@ func TestUnmarshalCoverDimensions(t *testing.T) { } func TestCoverDimensions(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{ UsTrade, Mono, @@ -101,7 +101,7 @@ func TestUnmarshalCoverValidation(t *testing.T) { } func TestStartCoverValidation(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{ UsTrade, Mono, @@ -118,7 +118,7 @@ func TestStartCoverValidation(t *testing.T) { } func TestGetCoverValidation(t *testing.T) { - c := newClient(t) + c := tNewClient(t) mfg := PkgId{UsTrade, Mono, Standard, Perfect, P60UncoatedWhite, Gloss, NoLinen, NoFoil} id, err := c.StartCoverValidation(coverUrl, mfg, 210) require.NoError(t, err) @@ -135,7 +135,7 @@ func TestGetCoverValidation(t *testing.T) { } func TestValidateCover(t *testing.T) { - c := newClient(t) + c := tNewClient(t) ctx, cancel := context.WithTimeout(t.Context(), timeout) defer cancel() mfg := PkgId{UsTrade, Mono, Standard, Perfect, P60UncoatedWhite, Gloss, NoLinen, NoFoil} -- cgit v1.2.3