Skip to content

Fix aggregator post-test panic.#989

Draft
winder wants to merge 1 commit intomainfrom
will/aggregator-lifecycle
Draft

Fix aggregator post-test panic.#989
winder wants to merge 1 commit intomainfrom
will/aggregator-lifecycle

Conversation

@winder
Copy link
Copy Markdown
Collaborator

@winder winder commented Mar 27, 2026

This service returns immediately if the context is cancelled, but causes a race condition with the underlying goroutine in tests. The test ends but logs are still being written while the service shuts down.

Add a Wait function to the handler so that tests can ensure all cleanup is complete.

@github-actions
Copy link
Copy Markdown

Code coverage report:

Package main will/aggregator-lifecycle diff
github.com/smartcontractkit/chainlink-ccv/aggregator 47.92% 47.92% +0.00%
github.com/smartcontractkit/chainlink-ccv/bootstrap 42.35% 42.35% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 65.13% 65.13% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 50.74% 50.74% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 46.42% 46.42% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 42.75% 42.70% -0.05%
github.com/smartcontractkit/chainlink-ccv/integration 44.75% 44.64% -0.11%
github.com/smartcontractkit/chainlink-ccv/pkg 100.00% 100.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 69.07% 69.07% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 32.62% 32.62% +0.00%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant