1
0
mirror of https://github.com/golang/go synced 2024-11-25 09:17:57 -07:00

net/rpc: trivial test cleanup

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5498066
This commit is contained in:
Robert Hencke 2011-12-23 22:01:46 +09:00 committed by Mikio Hara
parent cf506f6eac
commit 335c5db76a

View File

@ -498,8 +498,7 @@ func benchmarkEndToEnd(dial func() (*Client, error), b *testing.B) {
once.Do(startServer)
client, err := dial()
if err != nil {
fmt.Println("error dialing", err)
return
b.Fatal("error dialing:", err)
}
// Synchronous calls
@ -534,7 +533,7 @@ func benchmarkEndToEndAsync(dial func() (*Client, error), b *testing.B) {
once.Do(startServer)
client, err := dial()
if err != nil {
b.Fatalf("error dialing:", err)
b.Fatal("error dialing:", err)
}
// Asynchronous calls