summaryrefslogtreecommitdiff
path: root/internal/command/discover/discover_test.go
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2021-03-17 18:53:54 +0000
committerNick Thomas <nick@gitlab.com>2021-03-17 18:53:54 +0000
commit88f94337bb87c0cc51f6badf7a4ff1826f25efaa (patch)
tree130f2777342645018f3f6b797ee0083d65910889 /internal/command/discover/discover_test.go
parent4b40a2cb8c71a5b490cad4c8e1ad2dc0e9b39548 (diff)
parentee41d0dfb7b02a19f5926bfe24dbad1df417a29e (diff)
downloadgitlab-shell-88f94337bb87c0cc51f6badf7a4ff1826f25efaa.tar.gz
Merge branch 'id-refactor-cleanup' into 'main'
Replace cleanup functions with t.Cleanup See merge request gitlab-org/gitlab-shell!460
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