Skip to content

Commit

Permalink
refactor: use client from SetupTestServer
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Jul 13, 2022
1 parent 79b2087 commit c51f5c6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/link_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ import (

// TestLinkGen
func TestLinkGen(t *testing.T) {
_ = testserver.SetupTestServer(t)
client1 := testserver.SetupTestServer(t)
ecfg, err := client.ConfigFromEnv()
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
client1, err := client.NewClient(ecfg)
if err != nil {
t.Fatalf("error creating first client: %v", err)
}
client2, err := client.NewClient(ecfg)
if err != nil {
t.Fatalf("error creating second client: %v", err)
Expand Down

0 comments on commit c51f5c6

Please sign in to comment.