mirror of
https://github.com/golang/go
synced 2024-11-21 22:34:48 -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:
parent
cf506f6eac
commit
335c5db76a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user