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",