AppName: "app-1", ForwardSpecs: []options.ForwardSpec{{ ListenAddress: localAddress, ConnectAddress: echoAddress, }}, } currentApp.State = "STARTED" currentApp.Diego = true sshEndpointFingerprint = "" sshEndpoint = "" token = "" fakeSecureClient.DialStub = net.Dial }) JustBeforeEach(func() { connectErr := secureShell.Connect(opts) Expect(connectErr).NotTo(HaveOccurred()) localForwardError = secureShell.LocalPortForward() }) AfterEach(func() { err := secureShell.Close() Expect(err).NotTo(HaveOccurred()) echoServer.Shutdown() realLocalListener.Close()