Skip to content

mw/com: Add the integration tests for moving proxyEvent#607

Open
sahithi-nukala wants to merge 3 commits into
eclipse-score:mainfrom
sahithi-nukala:sah_proxy_event_move_tests
Open

mw/com: Add the integration tests for moving proxyEvent#607
sahithi-nukala wants to merge 3 commits into
eclipse-score:mainfrom
sahithi-nukala:sah_proxy_event_move_tests

Conversation

@sahithi-nukala

@sahithi-nukala sahithi-nukala commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Adding the integration tests that verify a Proxy (and its ProxyEvent) can be moved without disrupting service discovery, subscription, or sample reception.

Issue: #483

return *proxy_;
}

Proxy&& Extract()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

directory structure:
move_semantics/
....proxy_event/
....skeleton_event/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in the PR - #610

ProxyStateChangeNotifier(const ProxyStateChangeNotifier&&) = delete;
ProxyStateChangeNotifier& operator=(const ProxyStateChangeNotifier&&) = delete;

bool WaitForStateChange(const score::cpp::stop_token& stop_token, SubscriptionState desired_state)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool WaitForStateChange(const score::cpp::stop_token& stop_token, SubscriptionState desired_state)
[[nodiscard]] bool WaitForStateChange(const score::cpp::stop_token& stop_token, SubscriptionState desired_state)

If false is returned, we never got the expected state change so should terminate.

ProxyEventReceiver(const ProxyEventReceiver&&) = delete;
ProxyEventReceiver& operator=(const ProxyEventReceiver&&) = delete;

void WaitForSamples(const score::cpp::stop_token& stop_token, const std::size_t num_samples_to_receive)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
void WaitForSamples(const score::cpp::stop_token& stop_token, const std::size_t num_samples_to_receive)
[[nodiscard]] bool WaitForSamples(const score::cpp::stop_token& stop_token, const std::size_t num_samples_to_receive)

if false, didn't receive expected samples so should fail test.

@sahithi-nukala sahithi-nukala force-pushed the sah_proxy_event_move_tests branch 6 times, most recently from 94c8dd5 to f486d86 Compare July 3, 2026 04:42
@sahithi-nukala sahithi-nukala force-pushed the sah_proxy_event_move_tests branch from f486d86 to c755a1c Compare July 3, 2026 06:08
@sahithi-nukala sahithi-nukala marked this pull request as ready for review July 3, 2026 06:24
@sahithi-nukala sahithi-nukala requested a review from bemerybmw July 3, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants