Skip to content

Commit 95b25c3

Browse files
ivanpaunojacobperron
authored andcommitted
Do not use multiple message types in the same topic (osrf#61)
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
1 parent 6819ecc commit 95b25c3

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
@@ -953,10 +953,10 @@ public final void testGetTopicNamesAndTypes() throws Exception {
953953
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_one");
954954
Publisher<rcljava.msg.UInt32> publisher2 = node.<rcljava.msg.UInt32>createPublisher(
955955
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_two");
956-
Subscription<rcljava.msg.Empty> subscription = node.<rcljava.msg.Empty>createSubscription(
957-
rcljava.msg.Empty.class, "test_get_topic_names_and_types_one",
958-
new Consumer<rcljava.msg.Empty>() {
959-
public void accept(final rcljava.msg.Empty msg) {}
956+
Subscription<rcljava.msg.UInt32> subscription = node.<rcljava.msg.UInt32>createSubscription(
957+
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_one",
958+
new Consumer<rcljava.msg.UInt32>() {
959+
public void accept(final rcljava.msg.UInt32 msg) {}
960960
});
961961
Subscription<rcljava.msg.Empty> subscription2 = node.<rcljava.msg.Empty>createSubscription(
962962
rcljava.msg.Empty.class, "test_get_topic_names_and_types_three",
@@ -974,7 +974,7 @@ public void accept(final Collection<NameAndTypes> namesAndTypes) {
974974
namesAndTypes.contains(
975975
new NameAndTypes(
976976
"/test_get_topic_names_and_types_one",
977-
new ArrayList(Arrays.asList("rcljava/msg/Empty", "rcljava/msg/UInt32")))));
977+
new ArrayList(Arrays.asList("rcljava/msg/UInt32")))));
978978
assertTrue(
979979
"topic 'test_get_topic_names_and_types_two' was not discovered",
980980
namesAndTypes.contains(

0 commit comments

Comments
 (0)