Commit 335c5db7 authored by Robert Hencke's avatar Robert Hencke Committed by Mikio Hara

net/rpc: trivial test cleanup

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5498066
parent cf506f6e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment