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 /print_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 'print_test.go')
| -rw-r--r-- | print_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 |