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. --- print_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'print_test.go') diff --git a/print_test.go b/print_test.go index 23d54c8..9115c1a 100644 --- a/print_test.go +++ b/print_test.go @@ -171,7 +171,7 @@ func TestPrint(t *testing.T) { shipOpt := Mail item := printableSample - c := newClient(t) + c := tNewClient(t) startTime := time.Now() job, err := c.Print(contact, jobEid, productionDelay, addr, shipOpt, []Printable{item}) require.NoError(t, err) @@ -205,7 +205,7 @@ func TestReprint(t *testing.T) { printItem := printableSample // Create print job - c := newClient(t) + c := tNewClient(t) job1, err := c.Print(contact, "print", productionDelay, addr, shipOpt, []Printable{printItem}) require.NoError(t, err) id1 := job1.Id @@ -242,7 +242,7 @@ func TestReprint(t *testing.T) { func TestCancel(t *testing.T) { // Print - c := newClient(t) + c := tNewClient(t) contact := MustParseEmailAddress("test@test.com") jobEid := "cancel-test" productionDelay := 120 * time.Minute -- cgit v1.2.3