go.crypto/ssh/test: Replace FailNow with Fail where it is obvious that the test doesn't want to fail now.
Improve a couple of test error messages too. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8661045
This commit is contained in:
@@ -114,15 +114,15 @@ func (s *server) Dial(config *ssh.ClientConfig) *ssh.ClientConn {
|
|||||||
s.cmd.Stderr = os.Stderr // &s.output
|
s.cmd.Stderr = os.Stderr // &s.output
|
||||||
err = s.cmd.Start()
|
err = s.cmd.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.t.FailNow()
|
s.t.Fail()
|
||||||
s.Shutdown()
|
s.Shutdown()
|
||||||
s.t.Fatal(err)
|
s.t.Fatalf("s.cmd.Start: %v", err)
|
||||||
}
|
}
|
||||||
conn, err := ssh.Client(&client{stdin, stdout}, config)
|
conn, err := ssh.Client(&client{stdin, stdout}, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.t.FailNow()
|
s.t.Fail()
|
||||||
s.Shutdown()
|
s.Shutdown()
|
||||||
s.t.Fatal(err)
|
s.t.Fatalf("ssh.Client: %v", err)
|
||||||
}
|
}
|
||||||
return conn
|
return conn
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user