func TestExitStatusZero(t *testing.T) {
	conn := dial(exitStatusZeroHandler, t)
	defer conn.Close()
	session, err := conn.NewSession()
	if err != nil {
		t.Fatalf("Unable to request new session: %v", 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)
	}
}
// Test 0 exit status is returned correctly.
Test 0 exit status is returned correctly.
// Test 0 exit status is returned correctly .
func TestExitStatusZero(t *testing.T) {
	conn := dial(exitStatusZeroHandler, t)
	defer conn.Close()
	session, err := conn.NewSession()
	if err != nil {
		t.Fatalf("Unable to request new session: %v", 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 TestExitStatusZero ( t * testing . T ) { conn := dial ( exitStatusZeroHandler , t ) defer conn . Close ( ) session , err := conn . NewSession ( ) if err != nil { t . Fatalf ( " " , err ) } defer session . Close ( ) if err := session . Shell ( ) ; err != nil { t . Fatalf ( " " , err ) } err = session . Wait ( ) if err != nil { t . Fatalf ( " " , err ) } }
Test 0 exit status is returned correctly.
Test 0 exit status is returned correctly .