From 1c8b26c5d8504ee3bf9ed277a1460040baa529c2 Mon Sep 17 00:00:00 2001 From: Jake Shorty Date: Fri, 17 Jun 2022 19:59:29 +0000 Subject: [PATCH] Remove unused test function --- pkg/cmd/codespace/create_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/cmd/codespace/create_test.go b/pkg/cmd/codespace/create_test.go index 631cda849..238709faf 100644 --- a/pkg/cmd/codespace/create_test.go +++ b/pkg/cmd/codespace/create_test.go @@ -86,9 +86,6 @@ func TestApp_Create(t *testing.T) { name: "create codespace with default branch shows idle timeout notice if present", fields: fields{ apiClient: &apiClientMock{ - GetCodespaceRegionLocationFunc: func(ctx context.Context) (string, error) { - return "EUROPE", nil - }, GetCodespacePreFlightFunc: func(ctx context.Context, nwo string) (*api.User, error) { return &api.User{ Login: "monalisa", @@ -143,9 +140,6 @@ func TestApp_Create(t *testing.T) { name: "create codespace with default branch with default devcontainer if no path provided and no devcontainer files exist in the repo", fields: fields{ apiClient: &apiClientMock{ - GetCodespaceRegionLocationFunc: func(ctx context.Context) (string, error) { - return "EUROPE", nil - }, GetCodespacePreFlightFunc: func(ctx context.Context, nwo string) (*api.User, error) { return &api.User{ Login: "monalisa", @@ -205,9 +199,6 @@ func TestApp_Create(t *testing.T) { name: "returns error when getting devcontainer paths fails", fields: fields{ apiClient: &apiClientMock{ - GetCodespaceRegionLocationFunc: func(ctx context.Context) (string, error) { - return "EUROPE", nil - }, GetCodespacePreFlightFunc: func(ctx context.Context, nwo string) (*api.User, error) { return &api.User{ Login: "monalisa", @@ -239,9 +230,6 @@ func TestApp_Create(t *testing.T) { name: "create codespace with default branch does not show idle timeout notice if not conntected to terminal", fields: fields{ apiClient: &apiClientMock{ - GetCodespaceRegionLocationFunc: func(ctx context.Context) (string, error) { - return "EUROPE", nil - }, GetCodespacePreFlightFunc: func(ctx context.Context, nwo string) (*api.User, error) { return &api.User{ Login: "monalisa",