@@ -317,28 +317,6 @@ describe('rclnodejs action client', function () {
317317 typeof nativeLoader . actionConfigureFeedbackSubFilterAddGoalId ===
318318 'function' ;
319319
320- // Probe whether the RMW actually supports content filtering, matching
321- // the same check the ActionClient constructor performs.
322- let isContentFilterSupported = false ;
323- before ( function ( ) {
324- if ( isFeedbackFilterSupported ( ) ) {
325- try {
326- const Fibonacci_ = rclnodejs . require ( fibonacci ) ;
327- const probeSub = node . createSubscription (
328- Fibonacci_ . FeedbackMessage ,
329- 'fibonacci/_action/feedback' ,
330- ( ) => { }
331- ) ;
332- isContentFilterSupported =
333- typeof probeSub . isContentFilterSupported === 'function' &&
334- probeSub . isContentFilterSupported ( ) ;
335- probeSub . destroy ( ) ;
336- } catch {
337- isContentFilterSupported = false ;
338- }
339- }
340- } ) ;
341-
342320 it ( 'Test option defaults to false' , function ( ) {
343321 let client = new rclnodejs . ActionClient ( node , fibonacci , 'fibonacci' ) ;
344322 assert . strictEqual ( client . _enableFeedbackMsgOptimization , false ) ;
@@ -349,8 +327,8 @@ describe('rclnodejs action client', function () {
349327 let client = new rclnodejs . ActionClient ( node , fibonacci , 'fibonacci' , {
350328 enableFeedbackMsgOptimization : true ,
351329 } ) ;
352- // Only enabled when native API exists AND the RMW supports content filtering
353- if ( isFeedbackFilterSupported ( ) && isContentFilterSupported ) {
330+ // Only enabled when native API exists
331+ if ( isFeedbackFilterSupported ( ) ) {
354332 assert . strictEqual ( client . _enableFeedbackMsgOptimization , true ) ;
355333 } else {
356334 assert . strictEqual ( client . _enableFeedbackMsgOptimization , false ) ;
0 commit comments