Skip to content

Commit

Permalink
go.crypto/ssh/test: Replace FailNow with Fail where it is obvious tha…
Browse files Browse the repository at this point in the history
…t the test doesn't want to fail now.

Improve a couple of test error messages too.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/8661045
  • Loading branch information
dsymonds committed Apr 23, 2013
1 parent 435732d commit 1be7aa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssh/test/test_unix_test.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 1be7aa2

Please sign in to comment.