@@ -115,7 +115,6 @@ TEST_F(TestMemoryStrategy, get_subscription_by_handle) {
115
115
nullptr ,
116
116
memory_strategy ()->get_subscription_by_handle (subscription_handle, weak_groups_to_nodes));
117
117
} // callback_group goes out of scope
118
- memory_strategy ()->clear_handles ();
119
118
EXPECT_EQ (
120
119
nullptr ,
121
120
memory_strategy ()->get_subscription_by_handle (subscription_handle, weak_groups_to_nodes));
@@ -168,7 +167,6 @@ TEST_F(TestMemoryStrategy, get_service_by_handle) {
168
167
nullptr ,
169
168
memory_strategy ()->get_service_by_handle (service_handle, weak_groups_to_nodes));
170
169
} // callback_group goes out of scope
171
- memory_strategy ()->clear_handles ();
172
170
EXPECT_EQ (
173
171
nullptr ,
174
172
memory_strategy ()->get_service_by_handle (service_handle, weak_groups_to_nodes));
@@ -216,7 +214,6 @@ TEST_F(TestMemoryStrategy, get_client_by_handle) {
216
214
nullptr ,
217
215
memory_strategy ()->get_client_by_handle (client_handle, weak_groups_to_nodes));
218
216
} // callback_group goes out of scope
219
- memory_strategy ()->clear_handles ();
220
217
EXPECT_EQ (
221
218
nullptr ,
222
219
memory_strategy ()->get_client_by_handle (client_handle, weak_groups_to_nodes));
@@ -265,7 +262,6 @@ TEST_F(TestMemoryStrategy, get_timer_by_handle) {
265
262
nullptr ,
266
263
memory_strategy ()->get_timer_by_handle (timer_handle, weak_groups_to_nodes));
267
264
} // callback_group goes out of scope
268
- memory_strategy ()->clear_handles ();
269
265
EXPECT_EQ (
270
266
nullptr ,
271
267
memory_strategy ()->get_timer_by_handle (timer_handle, weak_groups_to_nodes));
@@ -360,7 +356,6 @@ TEST_F(TestMemoryStrategy, get_group_by_subscription) {
360
356
callback_group,
361
357
memory_strategy ()->get_group_by_subscription (subscription, weak_groups_to_nodes));
362
358
} // callback_group goes out of scope
363
- memory_strategy ()->clear_handles ();
364
359
EXPECT_EQ (
365
360
nullptr ,
366
361
memory_strategy ()->get_group_by_subscription (subscription, weak_groups_to_nodes));
@@ -405,7 +400,6 @@ TEST_F(TestMemoryStrategy, get_group_by_service) {
405
400
callback_group,
406
401
memory_strategy ()->get_group_by_service (service, weak_groups_to_nodes));
407
402
} // callback_group goes out of scope
408
- memory_strategy ()->clear_handles ();
409
403
EXPECT_EQ (
410
404
nullptr ,
411
405
memory_strategy ()->get_group_by_service (service, weak_groups_to_nodes));
@@ -445,7 +439,6 @@ TEST_F(TestMemoryStrategy, get_group_by_client) {
445
439
callback_group,
446
440
memory_strategy ()->get_group_by_client (client, weak_groups_to_nodes));
447
441
} // callback_group goes out of scope
448
- memory_strategy ()->clear_handles ();
449
442
EXPECT_EQ (
450
443
nullptr ,
451
444
memory_strategy ()->get_group_by_client (client, weak_groups_to_nodes));
@@ -485,7 +478,6 @@ TEST_F(TestMemoryStrategy, get_group_by_timer) {
485
478
callback_group,
486
479
memory_strategy ()->get_group_by_timer (timer, weak_groups_to_nodes));
487
480
} // callback_group goes out of scope
488
- memory_strategy ()->clear_handles ();
489
481
EXPECT_EQ (
490
482
nullptr ,
491
483
memory_strategy ()->get_group_by_timer (timer, weak_groups_to_nodes));
@@ -524,7 +516,6 @@ TEST_F(TestMemoryStrategy, get_group_by_waitable) {
524
516
callback_group,
525
517
memory_strategy ()->get_group_by_waitable (waitable, weak_groups_to_nodes));
526
518
} // callback_group goes out of scope
527
- memory_strategy ()->clear_handles ();
528
519
EXPECT_EQ (
529
520
nullptr ,
530
521
memory_strategy ()->get_group_by_waitable (waitable, weak_groups_to_nodes));
0 commit comments