launchpad.net/juju-core/rpc: test failure
Tim Penhey
tim.penhey at canonical.com
Wed Mar 20 05:21:52 UTC 2013
On 20/03/13 17:47, David Cheney wrote:
> Getting this one pretty consistently, can anyone else reproduce my
> findings ?
>
> lucky(~) % go test launchpad.net/juju-core/rpc
Sorry, no for me with r1024 of trunk I get these all passing.
Tim
> ----------------------------------------------------------------------
> FAIL: rpc_test.go:283: suite.TestTransformErrors
>
> [LOG] 72.00661 INFO: rpc: discarding obtainer method
> reflect.Method{Name:"callError",
> PkgPath:"launchpad.net/juju-core/rpc_test",
> Type:(*reflect.rtype)(0x72e740),
> Func:reflect.Value{typ:(*reflect.rtype)(0x72e740),
> val:(unsafe.Pointer)(0x7769a0), flag:0x131}, Index:3}
> [LOG] 72.00663 INFO: rpc: discarding obtainer method
> reflect.Method{Name:"called",
> PkgPath:"launchpad.net/juju-core/rpc_test",
> Type:(*reflect.rtype)(0x716280),
> Func:reflect.Value{typ:(*reflect.rtype)(0x716280),
> val:(unsafe.Pointer)(0x7769d0), flag:0x131}, Index:4}
> [LOG] 72.00666 INFO: rpc: discarding obtainer method
> reflect.Method{Name:"testCall",
> PkgPath:"launchpad.net/juju-core/rpc_test",
> Type:(*reflect.rtype)(0x73b3c0),
> Func:reflect.Value{typ:(*reflect.rtype)(0x73b3c0),
> val:(unsafe.Pointer)(0x776a00), flag:0x131}, Index:5}
> [LOG] 72.00684 INFO: send client request header:
> &rpc.Request{RequestId:0x1, Type:"ErrorMethods", Id:"", Request:"Call"}
> rpc_test.go:302:
> c.Assert(err, DeepEquals, &rpc.ServerError{
> Message: "transformed: message",
> Code: "transformed: code",
> })
> ... obtained *net.OpError = &net.OpError{Op:"write", Net:"tcp",
> Addr:(*net.TCPAddr)(0xc2001cc6c0), Err:0x68} ("write tcp [::1]:55692:
> connection reset by peer")
> ... expected *rpc.ServerError = &rpc.ServerError{Message:"transformed:
> message", Code:"transformed: code"} ("server error: transformed: message
> (transformed: code)")
>
> [LOG] 72.01036 INFO: got response header &rpc.Response{RequestId:0x0,
> Error:"", ErrorCode:""}
> [LOG] 72.01038 ERROR: rpc: client protocol error: unexpected EOF
> OOPS: 8 passed, 1 FAILED
> --- FAIL: TestAll (0.04 seconds)
> FAIL
> FAIL launchpad.net/juju-core/rpc 0.201s
>
>
More information about the Juju-dev
mailing list