@@ -121,16 +121,20 @@ TEST(dynamic_reconfigure_simple_client, setGetConfig) {
121
121
}
122
122
123
123
TEST (dynamic_reconfigure_simple_client, multipleClients) {
124
- Client<TestConfig> client1 (" /ref_server" , &configurationCallback);
125
- Client<TestConfig> client2 (" /ref_server" , &configurationCallback);
126
- Client<TestConfig> client3 (" /ref_server" , &configurationCallback);
127
- client3.setConfiguration (TestConfig::__getDefault__ ());
124
+ Client<TestConfig> client1 (" /ref_server" , &configurationCallback,
125
+ &descriptionCallback);
126
+ Client<TestConfig> client2 (" /ref_server" , &configurationCallback,
127
+ &descriptionCallback);
128
+ Client<TestConfig> client3 (" /ref_server" , &configurationCallback,
129
+ &descriptionCallback);
130
+ ros::Duration (0.2 ).sleep ();
131
+ EXPECT_TRUE (client3.setConfiguration (TestConfig::__getDefault__ ()));
128
132
ros::Duration (0.2 ).sleep ();
129
133
EXPECT_EQ (0 , CONFIG.int_ );
130
- client1.setConfiguration (TestConfig::__getMin__ ());
134
+ EXPECT_TRUE ( client1.setConfiguration (TestConfig::__getMin__ () ));
131
135
ros::Duration (0.2 ).sleep ();
132
136
EXPECT_EQ (-10 , CONFIG.int_ );
133
- client2.setConfiguration (TestConfig::__getMax__ ());
137
+ EXPECT_TRUE ( client2.setConfiguration (TestConfig::__getMax__ () ));
134
138
ros::Duration (0.2 ).sleep ();
135
139
EXPECT_EQ (10 , CONFIG.int_ );
136
140
}
0 commit comments