@@ -321,30 +321,6 @@ describe('rclnodejs action client', function () {
321321 typeof nativeLoader . actionConfigureFeedbackSubFilterAddGoalId ===
322322 'function' ;
323323
324- // Probe whether the RMW supports content filtering, matching the
325- // same check the ActionClient constructor performs.
326- let isContentFilterSupported = false ;
327- beforeEach ( function ( ) {
328- if ( isContentFilterSupported ) return ; // only probe once
329- if ( isFeedbackFilterSupported ( ) ) {
330- try {
331- const loader = require ( '../lib/interface_loader.js' ) ;
332- const typeClass = loader . loadInterface ( fibonacci ) ;
333- const probeSub = node . createSubscription (
334- typeClass . impl . FeedbackMessage ,
335- 'fibonacci/_action/feedback' ,
336- ( ) => { }
337- ) ;
338- isContentFilterSupported =
339- typeof probeSub . isContentFilterSupported === 'function' &&
340- probeSub . isContentFilterSupported ( ) ;
341- node . destroySubscription ( probeSub ) ;
342- } catch {
343- isContentFilterSupported = false ;
344- }
345- }
346- } ) ;
347-
348324 it ( 'Test option defaults to false' , function ( ) {
349325 let client = new rclnodejs . ActionClient ( node , fibonacci , 'fibonacci' ) ;
350326 assert . strictEqual ( client . _enableFeedbackMsgOptimization , false ) ;
@@ -355,8 +331,8 @@ describe('rclnodejs action client', function () {
355331 let client = new rclnodejs . ActionClient ( node , fibonacci , 'fibonacci' , {
356332 enableFeedbackMsgOptimization : true ,
357333 } ) ;
358- // Only enabled when native API exists AND the RMW supports content filtering
359- if ( isFeedbackFilterSupported ( ) && isContentFilterSupported ) {
334+ // Only enabled when native API exists
335+ if ( isFeedbackFilterSupported ( ) ) {
360336 assert . strictEqual ( client . _enableFeedbackMsgOptimization , true ) ;
361337 } else {
362338 assert . strictEqual ( client . _enableFeedbackMsgOptimization , false ) ;
0 commit comments