Skip to content

Wait for discovery completion instead of sleeping in tests - #30

Open
jeregrine wants to merge 1 commit into
mainfrom
test/discovery-completion-barrier
Open

Wait for discovery completion instead of sleeping in tests#30
jeregrine wants to merge 1 commit into
mainfrom
test/discovery-completion-barrier

Conversation

@jeregrine

Copy link
Copy Markdown
Member

Problem

The lifecycle suite's discovery completion helper only monitors the manager and sleeps. It reports success while discovery is still running and spends the full timeout even when work has already finished.

Fix

Poll the manager's outstanding discovery task after the caller's discovery message. Message ordering ensures the state read follows the trigger; a live manager with a pending task no longer satisfies the barrier. Scenario assertions remain responsible for checking the discovery outcome.

Add focused cases for unfinished discovery, clearing the outstanding task, and a manager that exits.

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