aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-09-22 05:55:10 +1000
committerRuss Cox <rsc@golang.org>2012-09-22 05:55:10 +1000
commited4d4cb231a3c88afa98dd2dde0c38faa79145c1 (patch)
tree68ac331925227feb916292ca9650581e9d99eccd
parentec783af29cc2468fa190c52e3833d492d56ab85a (diff)
downloadgo-ed4d4cb231a3c88afa98dd2dde0c38faa79145c1.tar.gz
go-ed4d4cb231a3c88afa98dd2dde0c38faa79145c1.zip
[release-branch.go1] net/rpc/jsonrpc: fix test error message
««« backport cbce1b576493 net/rpc/jsonrpc: fix test error message Fixes #4041. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6495121 »»»
-rw-r--r--src/pkg/net/rpc/jsonrpc/all_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/net/rpc/jsonrpc/all_test.go b/src/pkg/net/rpc/jsonrpc/all_test.go
index e6c7441f06..adc29d5a1b 100644
--- a/src/pkg/net/rpc/jsonrpc/all_test.go
+++ b/src/pkg/net/rpc/jsonrpc/all_test.go
@@ -108,7 +108,7 @@ func TestClient(t *testing.T) {
t.Errorf("Add: expected no error but got string %q", err.Error())
}
if reply.C != args.A+args.B {
- t.Errorf("Add: expected %d got %d", reply.C, args.A+args.B)
+ t.Errorf("Add: got %d expected %d", reply.C, args.A+args.B)
}
args = &Args{7, 8}
@@ -118,7 +118,7 @@ func TestClient(t *testing.T) {
t.Errorf("Mul: expected no error but got string %q", err.Error())
}
if reply.C != args.A*args.B {
- t.Errorf("Mul: expected %d got %d", reply.C, args.A*args.B)
+ t.Errorf("Mul: got %d expected %d", reply.C, args.A*args.B)
}
// Out of order.
@@ -133,7 +133,7 @@ func TestClient(t *testing.T) {
t.Errorf("Add: expected no error but got string %q", addCall.Error.Error())
}
if addReply.C != args.A+args.B {
- t.Errorf("Add: expected %d got %d", addReply.C, args.A+args.B)
+ t.Errorf("Add: got %d expected %d", addReply.C, args.A+args.B)
}
mulCall = <-mulCall.Done
@@ -141,7 +141,7 @@ func TestClient(t *testing.T) {
t.Errorf("Mul: expected no error but got string %q", mulCall.Error.Error())
}
if mulReply.C != args.A*args.B {
- t.Errorf("Mul: expected %d got %d", mulReply.C, args.A*args.B)
+ t.Errorf("Mul: got %d expected %d", mulReply.C, args.A*args.B)
}
// Error test