Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/services/ocr2/plugins/ccip: fix CLO test (#1230)
## Motivation We were getting this log in the CLO integration test: ``` panic: Log in goroutine after Test_CLOSpecApprovalFlow_dynamicPriceGetter has completed: 2024-07-30T12:04:28.447Z ERROR Feeds [email protected]/client.go:512 failed to connect to server at http://localhost:8080, got: [wsrpc] error while dialing dial tcp: lookup http on 127.0.0.53:53: server misbehaving {"version": "2.14.0-ccip1.4.13@dadff37"} ``` This appears to be due to the wsrpc client trying to connect to the CLO server when it doesn't actually exist. We set the mocked out connection manager previously, but it happened after the RegisterManager call, when it should be before. ## Solution Set the connections manager of the feeds service to the mock connection manager prior to registering the manager, since registering triggers a connect loop which uses wsrpc and has reconnection logic.
- Loading branch information