Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the test for any_subscription_callback. #13

Conversation

clalancette
Copy link
Collaborator

In particular, change it so that the tests for TypeAdaptation
with any_subscription_callback always pass the custom type
to dispatch_intra_process(). That means that when using
TypeAdaptation, it is not possible to call dispatch_intra_process()
with the ROS message type. But since this is a low-level
interface, this should be fine; the public-facing APIs handle
this case for us.

This also requires us to remove the test for inter-process
publishing with type adaptation. That's because we didn't change
the signature of AnySubscriptionCallback::dispath() to take
in the custom type, so it always expects the ROS message type.

Signed-off-by: Chris Lalancette [email protected]

In particular, change it so that the tests for TypeAdaptation
with any_subscription_callback always pass the custom type
to dispatch_intra_process().  That means that when using
TypeAdaptation, it is not possible to call dispatch_intra_process()
with the ROS message type.  But since this is a low-level
interface, this should be fine; the public-facing APIs handle
this case for us.

This also requires us to remove the test for inter-process
publishing with type adaptation.  That's because we didn't change
the signature of AnySubscriptionCallback::dispath() to take
in the custom type, so it always expects the ROS message type.

Signed-off-by: Chris Lalancette <[email protected]>
@gonzodepedro gonzodepedro merged commit 1f9bc22 into gonzodepedro:gonzo/non-transform-intra-process-working-tests Dec 10, 2021
clalancette added a commit that referenced this pull request Dec 17, 2021
In particular, change it so that the tests for TypeAdaptation
with any_subscription_callback always pass the custom type
to dispatch_intra_process().  That means that when using
TypeAdaptation, it is not possible to call dispatch_intra_process()
with the ROS message type.  But since this is a low-level
interface, this should be fine; the public-facing APIs handle
this case for us.

This also requires us to remove the test for inter-process
publishing with type adaptation.  That's because we didn't change
the signature of AnySubscriptionCallback::dispath() to take
in the custom type, so it always expects the ROS message type.

Signed-off-by: Chris Lalancette <[email protected]>
gonzodepedro pushed a commit that referenced this pull request Dec 20, 2021
Fixed image tools issues

Signed-off-by: Gonzalo de Pedro <[email protected]>

Fix linting. (#12)

Signed-off-by: Chris Lalancette <[email protected]>

Fix the test for any_subscription_callback. (#13)

In particular, change it so that the tests for TypeAdaptation
with any_subscription_callback always pass the custom type
to dispatch_intra_process().  That means that when using
TypeAdaptation, it is not possible to call dispatch_intra_process()
with the ROS message type.  But since this is a low-level
interface, this should be fine; the public-facing APIs handle
this case for us.

This also requires us to remove the test for inter-process
publishing with type adaptation.  That's because we didn't change
the signature of AnySubscriptionCallback::dispath() to take
in the custom type, so it always expects the ROS message type.

Signed-off-by: Chris Lalancette <[email protected]>

Reenable the test_intra_process* tests. (#14)

Signed-off-by: Chris Lalancette <[email protected]>

Remove debugging print statements. (#11)

Signed-off-by: Chris Lalancette <[email protected]>
clalancette pushed a commit that referenced this pull request Dec 20, 2021
Fixed image tools issues

Signed-off-by: Gonzalo de Pedro <[email protected]>

Fix linting. (#12)

Signed-off-by: Chris Lalancette <[email protected]>

Fix the test for any_subscription_callback. (#13)

In particular, change it so that the tests for TypeAdaptation
with any_subscription_callback always pass the custom type
to dispatch_intra_process().  That means that when using
TypeAdaptation, it is not possible to call dispatch_intra_process()
with the ROS message type.  But since this is a low-level
interface, this should be fine; the public-facing APIs handle
this case for us.

This also requires us to remove the test for inter-process
publishing with type adaptation.  That's because we didn't change
the signature of AnySubscriptionCallback::dispath() to take
in the custom type, so it always expects the ROS message type.

Signed-off-by: Chris Lalancette <[email protected]>

Reenable the test_intra_process* tests. (#14)

Signed-off-by: Chris Lalancette <[email protected]>

Remove debugging print statements. (#11)

Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Gonzalo de Pedro <[email protected]>
clalancette pushed a commit that referenced this pull request Jan 4, 2022
Fixed image tools issues

Signed-off-by: Gonzalo de Pedro <[email protected]>

Fix linting. (#12)

Signed-off-by: Chris Lalancette <[email protected]>

Fix the test for any_subscription_callback. (#13)

In particular, change it so that the tests for TypeAdaptation
with any_subscription_callback always pass the custom type
to dispatch_intra_process().  That means that when using
TypeAdaptation, it is not possible to call dispatch_intra_process()
with the ROS message type.  But since this is a low-level
interface, this should be fine; the public-facing APIs handle
this case for us.

This also requires us to remove the test for inter-process
publishing with type adaptation.  That's because we didn't change
the signature of AnySubscriptionCallback::dispath() to take
in the custom type, so it always expects the ROS message type.

Signed-off-by: Chris Lalancette <[email protected]>

Reenable the test_intra_process* tests. (#14)

Signed-off-by: Chris Lalancette <[email protected]>

Remove debugging print statements. (#11)

Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Gonzalo de Pedro <[email protected]>
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.

2 participants