I added some println's to see where the test was failing, and it stopped working as soon as it hit sshd.ConnectShell.
My code below:
// First client
fmt.Println("Creating new client")
go func() {
fmt.Println("Connecting a shell")
err := sshd.ConnectShell(s.Addr().String(), "foo", func(r io.Reader, w io.WriteCloser) error {
fmt.Println("Opening a scanner")
scanner := bufio.NewScanner(r)
Which results in
Creating new client
Connecting a shell
but never reaching anything else past that. I ran the tests on a Linux VM and a Windows machine and the tests never work.
I added some println's to see where the test was failing, and it stopped working as soon as it hit
sshd.ConnectShell.My code below:
Which results in
but never reaching anything else past that. I ran the tests on a Linux VM and a Windows machine and the tests never work.