Skip to content

Commit

Permalink
rpc: fix go 1.8 failure
Browse files Browse the repository at this point in the history
error message changed
  • Loading branch information
axw committed Apr 12, 2017
1 parent 36df3ee commit 7f26b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -947,10 +947,10 @@ func (*rpcSuite) TestContinueAfterReadBodyError(c *gc.C) {
X: map[string]int{"hello": 65},
}
err := client.Call(rpc.Request{"SimpleMethods", 0, "a0", "SliceArg"}, arg0, &ret)
c.Assert(err, gc.ErrorMatches, `json: cannot unmarshal object into Go value of type \[\]string`)
c.Assert(err, gc.ErrorMatches, `json: cannot unmarshal object into Go (?:value)|(?:struct field \.X) of type \[\]string`)

err = client.Call(rpc.Request{"SimpleMethods", 0, "a0", "SliceArg"}, arg0, &ret)
c.Assert(err, gc.ErrorMatches, `json: cannot unmarshal object into Go value of type \[\]string`)
c.Assert(err, gc.ErrorMatches, `json: cannot unmarshal object into Go (?:value)|(?:struct field \.X) of type \[\]string`)

arg1 := struct {
X []string
Expand Down

0 comments on commit 7f26b97

Please sign in to comment.