Loading get.go +0 −8 Original line number Diff line number Diff line Loading @@ -18,8 +18,6 @@ const ( ) type Expect struct { // bytes.Buffer // mb.MutexBuffer stdin io.Reader stdout io.Writer stderr io.Writer Loading Loading @@ -158,13 +156,7 @@ func (x *Expect) worker(started chan<- bool) { if !valid { continue } //stdin.Reset() //stdinWriter.Write([]byte(s)) fmt.Fprintln(stdinWriter, s) //x.stdin.Reset() //x.stdin.Write([]byte(s)) //io.WriteString(stdin, s) //fmt.Fprintln(x.stdin, s) case terminate, valid := <-x.terminateStream: if !valid { continue Loading get_test.go +0 −4 Original line number Diff line number Diff line Loading @@ -24,10 +24,6 @@ func TestPasswdChange(t *testing.T) { } defer x.Close() //x.Wait(Out, "Current password", lp1Pass) //x.Wait(Out, "New password", lpNPass) //x.Wait(Out, "Retype new password", lpNPass) x.Wait(Err, "Current password", lp2Pass) x.Wait(Err, "New password", lpNPass) x.Wait(Err, "Retype new password", lpNPass) Loading Loading
get.go +0 −8 Original line number Diff line number Diff line Loading @@ -18,8 +18,6 @@ const ( ) type Expect struct { // bytes.Buffer // mb.MutexBuffer stdin io.Reader stdout io.Writer stderr io.Writer Loading Loading @@ -158,13 +156,7 @@ func (x *Expect) worker(started chan<- bool) { if !valid { continue } //stdin.Reset() //stdinWriter.Write([]byte(s)) fmt.Fprintln(stdinWriter, s) //x.stdin.Reset() //x.stdin.Write([]byte(s)) //io.WriteString(stdin, s) //fmt.Fprintln(x.stdin, s) case terminate, valid := <-x.terminateStream: if !valid { continue Loading
get_test.go +0 −4 Original line number Diff line number Diff line Loading @@ -24,10 +24,6 @@ func TestPasswdChange(t *testing.T) { } defer x.Close() //x.Wait(Out, "Current password", lp1Pass) //x.Wait(Out, "New password", lpNPass) //x.Wait(Out, "Retype new password", lpNPass) x.Wait(Err, "Current password", lp2Pass) x.Wait(Err, "New password", lpNPass) x.Wait(Err, "Retype new password", lpNPass) Loading