launchpad.net/juju-core/rpc: test failure
roger peppe
roger.peppe at canonical.com
Wed Mar 20 08:37:05 UTC 2013
I saw this yesterday. It happens when using Go tip only. I have not yet
narrowed it down.
On 20 March 2013 04:47, David Cheney <david.cheney at canonical.com> wrote:
> Getting this one pretty consistently, can anyone else reproduce my findings
> ?
>
> lucky(~) % go test launchpad.net/juju-core/rpc
>
> ----------------------------------------------------------------------
> 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
>
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
More information about the Juju-dev
mailing list