summaryrefslogtreecommitdiff
path: root/internal/command/discover/discover_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/command/discover/discover_test.go')
-rw-r--r--internal/command/discover/discover_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/command/discover/discover_test.go b/internal/command/discover/discover_test.go
index 5431410..7989c27 100644
--- a/internal/command/discover/discover_test.go
+++ b/internal/command/discover/discover_test.go
@@ -45,8 +45,7 @@ var (
)
func TestExecute(t *testing.T) {
- url, cleanup := testserver.StartSocketHttpServer(t, requests)
- defer cleanup()
+ url := testserver.StartSocketHttpServer(t, requests)
testCases := []struct {
desc string
@@ -93,8 +92,7 @@ func TestExecute(t *testing.T) {
}
func TestFailingExecute(t *testing.T) {
- url, cleanup := testserver.StartSocketHttpServer(t, requests)
- defer cleanup()
+ url := testserver.StartSocketHttpServer(t, requests)
testCases := []struct {
desc string