You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: console.go
    path of file: ./repos/graphql-engine/cli/integration_test/v2
    
    the code of the file until where you have to start completion: package v2

import (
	"fmt"
	"net"
	"net/url"
	"os"
	"sync"
	"testing"
	"time"

	"gi
    
func TestConsoleCmd(t *testing.T, ec *cli.ExecutionContext) {
	apiHost := &url.URL{
		Host:   "localhost",
		Scheme: "http",
	}
	opts := &commands.ConsoleOptions{
		EC:                           ec,
		APIPort:                      "9693",
		APIHost:                      apiHost,
		ConsolePort:                  "9695",
		Address:                      "localhost",
		DontOpenBrowser:              true,
		APIServerInterruptSignal:     make(chan os.Signal),
		ConsoleServerInterruptSignal: make(chan os.Signal),
	}

	var wg sync.WaitGroup
	wg.Add(1)
	go func() {
		defer wg.Done()
		t.Log("waiting for console to start")
		timeout := 1 * time.Minute
		require.NoError(t, retry.Do(
			func() error {
				_, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%s", opts.Address, opts.APIPort), timeout)
				return err
			}, retry.Attempts(5),
		))
		require.NoError(t, retry.Do(
			func() error {
				_, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%s", opts.Address, opts.ConsolePort), timeout)
				return err
			}, retry.Attempts(5),
		))
		opts.APIServerInterruptSignal <- os.Interrupt
		opts.ConsoleServerInterruptSignal <- os.Interrupt
		close(opts.APIServerInterruptSignal)
		close(opts.ConsoleServerInterruptSignal)
	}()
	err := opts.Run()
	if err != nil {
		t.Fatalf("failed running console: %v", err)
	}

	wg.Wait()
	// TODO: (shahidhk) curl the console endpoint for 200 response
}