Skip to content

Commit f5363dc

Browse files
committed
Do not use multiple message types in the same topic (#61)
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 710fc2a commit f5363dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rcljava/src/test/java/org/ros2/rcljava/node/NodeTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,10 @@ public final void testGetTopicNamesAndTypes() throws Exception {
950950
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_one");
951951
Publisher<rcljava.msg.UInt32> publisher2 = node.<rcljava.msg.UInt32>createPublisher(
952952
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_two");
953-
Subscription<rcljava.msg.Empty> subscription = node.<rcljava.msg.Empty>createSubscription(
954-
rcljava.msg.Empty.class, "test_get_topic_names_and_types_one",
955-
new Consumer<rcljava.msg.Empty>() {
956-
public void accept(final rcljava.msg.Empty msg) {}
953+
Subscription<rcljava.msg.UInt32> subscription = node.<rcljava.msg.UInt32>createSubscription(
954+
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_one",
955+
new Consumer<rcljava.msg.UInt32>() {
956+
public void accept(final rcljava.msg.UInt32 msg) {}
957957
});
958958
Subscription<rcljava.msg.Empty> subscription2 = node.<rcljava.msg.Empty>createSubscription(
959959
rcljava.msg.Empty.class, "test_get_topic_names_and_types_three",
@@ -971,7 +971,7 @@ public void accept(final Collection<NameAndTypes> namesAndTypes) {
971971
namesAndTypes.contains(
972972
new NameAndTypes(
973973
"/test_get_topic_names_and_types_one",
974-
new ArrayList(Arrays.asList("rcljava/msg/Empty", "rcljava/msg/UInt32")))));
974+
new ArrayList(Arrays.asList("rcljava/msg/UInt32")))));
975975
assertTrue(
976976
"topic 'test_get_topic_names_and_types_two' was not discovered",
977977
namesAndTypes.contains(

0 commit comments

Comments
 (0)