Skip to content

Fix aggregator post-test panic.#964

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

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

Conversation

@winder
Copy link
Collaborator

@winder winder commented Mar 23, 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

Code coverage report:

Package main will/aggregator-lifecycle diff
github.com/smartcontractkit/chainlink-ccv/aggregator 47.92% 47.95% +0.03%
github.com/smartcontractkit/chainlink-ccv/bootstrap 42.35% 42.35% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 86.39% 86.39% +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.70% 42.70% +0.00%
github.com/smartcontractkit/chainlink-ccv/integration 45.38% 45.27% -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 68.69% 68.59% -0.10%
github.com/smartcontractkit/chainlink-ccv/verifier 33.10% 33.10% +0.00%

@winder winder closed this Mar 23, 2026
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