Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commited4d4cb

Browse files
committed
[release-branch.go1] net/rpc/jsonrpc: fix test error message
««« backport cbce1b576493net/rpc/jsonrpc: fix test error messageFixes#4041.R=golang-dev, bradfitzCC=golang-devhttps://golang.org/cl/6495121»»»
1 parentec783af commited4d4cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/pkg/net/rpc/jsonrpc/all_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestClient(t *testing.T) {
108108
t.Errorf("Add: expected no error but got string %q",err.Error())
109109
}
110110
ifreply.C!=args.A+args.B {
111-
t.Errorf("Add:expected %dgot %d",reply.C,args.A+args.B)
111+
t.Errorf("Add:got %dexpected %d",reply.C,args.A+args.B)
112112
}
113113

114114
args=&Args{7,8}
@@ -118,7 +118,7 @@ func TestClient(t *testing.T) {
118118
t.Errorf("Mul: expected no error but got string %q",err.Error())
119119
}
120120
ifreply.C!=args.A*args.B {
121-
t.Errorf("Mul:expected %dgot %d",reply.C,args.A*args.B)
121+
t.Errorf("Mul:got %dexpected %d",reply.C,args.A*args.B)
122122
}
123123

124124
// Out of order.
@@ -133,15 +133,15 @@ func TestClient(t *testing.T) {
133133
t.Errorf("Add: expected no error but got string %q",addCall.Error.Error())
134134
}
135135
ifaddReply.C!=args.A+args.B {
136-
t.Errorf("Add:expected %dgot %d",addReply.C,args.A+args.B)
136+
t.Errorf("Add:got %dexpected %d",addReply.C,args.A+args.B)
137137
}
138138

139139
mulCall=<-mulCall.Done
140140
ifmulCall.Error!=nil {
141141
t.Errorf("Mul: expected no error but got string %q",mulCall.Error.Error())
142142
}
143143
ifmulReply.C!=args.A*args.B {
144-
t.Errorf("Mul:expected %dgot %d",mulReply.C,args.A*args.B)
144+
t.Errorf("Mul:got %dexpected %d",mulReply.C,args.A*args.B)
145145
}
146146

147147
// Error test

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp