firefly-ethconnect icon indicating copy to clipboard operation
firefly-ethconnect copied to clipboard

Intermittent failure TestActionChildCleanup - This method was unexpected

Open peterbroadhurst opened this issue 3 years ago • 0 comments

https://github.com/hyperledger/firefly-ethconnect/runs/4001938764?check_suite_focus=true

2021-10-25T20:20:01.0056281Z === RUN   TestActionChildCleanup
2021-10-25T20:20:01.0057071Z     submanager_test.go:55: tmpdir/create: /tmp/fly914068645
2021-10-25T20:20:01.0058862Z time="2021-10-25T20:20:00Z" level=info msg="es-00b50f13-bb23-410d-6e1d-2b707f15f646: Event stream stopped"
2021-10-25T20:20:01.0060584Z time="2021-10-25T20:20:00Z" level=info msg="es-00b50f13-bb23-410d-6e1d-2b707f15f646: Suspended, returning exiting batch processor"
2021-10-25T20:20:01.0062738Z time="2021-10-25T20:20:00Z" level=debug msg="No name provided for subscription, using auto-generated summary:*:ping()"
2021-10-25T20:20:01.0065332Z time="2021-10-25T20:20:00Z" level=info msg="Created subscription ID:sb-d28c95c1-1a4b-426f-435f-08afa55bf26d name:*:ping() topic:0x5c36b18619eaaa0cf56c8ee3ae21bd5e5587cec138a0215c1dfb2237feddc155"
2021-10-25T20:20:01.0066811Z panic: 
2021-10-25T20:20:01.0067616Z assert: mock: I don't know what to return because the method call was unexpected.
2021-10-25T20:20:01.0068408Z 	Either do Mock.On("CallContext").Return(...) first, or remove the CallContext() call.
2021-10-25T20:20:01.0069196Z 	This method was unexpected:
2021-10-25T20:20:01.0069792Z 		CallContext(*context.timerCtx,*hexutil.Big,string)
2021-10-25T20:20:01.0071614Z 		0: &context.timerCtx{cancelCtx:context.cancelCtx{Context:(*context.valueCtx)(0xc0001e31a0), mu:sync.Mutex{state:0, sema:0x0}, done:(chan struct {})(nil), children:map[context.canceler]struct {}(nil), err:error(nil)}, timer:(*time.Timer)(0xc000318a00), deadline:time.Time{wall:0xc055e243a753f38d, ext:30808618096, loc:(*time.Location)(0x116dd40)}}
2021-10-25T20:20:01.0074555Z 		1: &hexutil.Big{neg:false, abs:big.nat(nil)}
2021-10-25T20:20:01.0075154Z 		2: "eth_blockNumber"
2021-10-25T20:20:01.0075934Z 	at: [rpc_client.go:21 subscription.go:213 eventstream.go:410 asm_amd64.s:1371]
2021-10-25T20:20:01.0076364Z 
2021-10-25T20:20:01.0079088Z goroutine 643 [running]:
2021-10-25T20:20:01.0079855Z github.com/stretchr/testify/mock.(*Mock).fail(0xc0000aec80, 0xd5c981, 0xc1, 0xc0002dba40, 0x4, 0x4)
2021-10-25T20:20:01.0082142Z 	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/mock/mock.go:254 +0x17f
2021-10-25T20:20:01.0083513Z github.com/stretchr/testify/mock.(*Mock).MethodCalled(0xc0000aec80, 0xea52cd, 0xb, 0xc0001e3230, 0x3, 0x3, 0xc0002db680, 0x4, 0x4)
2021-10-25T20:20:01.0084468Z 	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/mock/mock.go:418 +0xe7f
2021-10-25T20:20:01.0085405Z github.com/stretchr/testify/mock.(*Mock).Called(0xc0000aec80, 0xc0001e3230, 0x3, 0x3, 0x0, 0x0, 0x0)
2021-10-25T20:20:01.0086205Z 	/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/mock/mock.go:383 +0x1ab
2021-10-25T20:20:01.0087660Z github.com/hyperledger/firefly-ethconnect/mocks/ethmocks.(*RPCClient).CallContext(0xc0000aec80, 0xe09e28, 0xc00026b7a0, 0xcdf800, 0xc0001e0500, 0xd3be0e, 0xf, 0x0, 0x0, 0x0, ...)
2021-10-25T20:20:01.0089342Z 	/home/runner/work/firefly-ethconnect/firefly-ethconnect/ethconnect/mocks/ethmocks/rpc_client.go:21 +0x1cf
2021-10-25T20:20:01.0090933Z github.com/hyperledger/firefly-ethconnect/internal/events.(*subscription).restartFilter(0xc00021b800, 0xe09e60, 0xc00026b7a0, 0xc0001e04c0, 0x0, 0x0)
2021-10-25T20:20:01.0092572Z 	/home/runner/work/firefly-ethconnect/firefly-ethconnect/ethconnect/internal/events/subscription.go:213 +0x182
2021-10-25T20:20:01.0093839Z github.com/hyperledger/firefly-ethconnect/internal/events.(*eventStream).eventPoller(0xc0000c9080)
2021-10-25T20:20:01.0095396Z 	/home/runner/work/firefly-ethconnect/firefly-ethconnect/ethconnect/internal/events/eventstream.go:410 +0x44e
2021-10-25T20:20:01.0096927Z created by github.com/hyperledger/firefly-ethconnect/internal/events.(*eventStream).startEventHandlers
2021-10-25T20:20:01.0098297Z 	/home/runner/work/firefly-ethconnect/firefly-ethconnect/ethconnect/internal/events/eventstream.go:207 +0xcc
2021-10-25T20:20:01.0099426Z FAIL	github.com/hyperledger/firefly-ethconnect/internal/events	0.818s

peterbroadhurst avatar Oct 25 '21 20:10 peterbroadhurst