func TestClientHandlesKeepalives(t *testing.T) {
	conn := dial(channelKeepaliveSender, t)
	defer conn.Close()
	session, err := conn.NewSession()
	if err != nil {
		t.Fatal(err)
	}
	defer session.Close()
	if err := session.Shell(); err != nil {
		t.Fatalf("Unable to execute command: %v", err)
	}
	err = session.Wait()
	if err != nil {
		t.Fatalf("expected nil but got: %v", err)
	}
}
// Verify the client can handle a keepalive packet from the server.
Verify the client can handle a keepalive packet from the server.
// Verify the client can handle a keepalive packet from the server .
func TestClientHandlesKeepalives(t *testing.T) {
	conn := dial(channelKeepaliveSender, t)
	defer conn.Close()
	session, err := conn.NewSession()
	if err != nil {
		t.Fatal(err)
	}
	defer session.Close()
	if err := session.Shell(); err != nil {
		t.Fatalf("Unable to execute command: %v", err)
	}
	err = session.Wait()
	if err != nil {
		t.Fatalf("expected nil but got: %v", err)
	}
}
func TestClientHandlesKeepalives ( t * testing . T ) { conn := dial ( channelKeepaliveSender , t ) defer conn . Close ( ) session , err := conn . NewSession ( ) if err != nil { t . Fatal ( err ) } defer session . Close ( ) if err := session . Shell ( ) ; err != nil { t . Fatalf ( " " , err ) } err = session . Wait ( ) if err != nil { t . Fatalf ( " " , err ) } }
Verify the client can handle a keepalive packet from the server.
Verify the client can handle a keepalive packet from the server .