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:
David Symonds
2013-04-23 12:15:38 +10:00
parent 952dc41929
commit 41998200eb
+4 -4
View File
@@ -114,15 +114,15 @@ func (s *server) Dial(config *ssh.ClientConfig) *ssh.ClientConn {
s.cmd.Stderr = os.Stderr // &s.output
err = s.cmd.Start()
if err != nil {
s.t.FailNow()
s.t.Fail()
s.Shutdown()
s.t.Fatal(err)
s.t.Fatalf("s.cmd.Start: %v", err)
}
conn, err := ssh.Client(&client{stdin, stdout}, config)
if err != nil {
s.t.FailNow()
s.t.Fail()
s.Shutdown()
s.t.Fatal(err)
s.t.Fatalf("ssh.Client: %v", err)
}
return conn
}