@@ -421,7 +421,7 @@ static int s_devicedefender_get_network_connections(struct aws_allocator *alloca
421421}
422422
423423static int s_setup_mqtt_test_data_fn (struct aws_allocator * allocator , void * ctx ) {
424- aws_mqtt_library_init (allocator );
424+ aws_iotdevice_library_init (allocator );
425425
426426 struct mqtt_connection_test_data * state_test_data = ctx ;
427427 AWS_ZERO_STRUCT (* state_test_data );
@@ -472,7 +472,6 @@ static int s_clean_up_mqtt_test_data_fn(struct aws_allocator *allocator, int set
472472 }
473473
474474 aws_iotdevice_library_clean_up ();
475- aws_mqtt_library_clean_up ();
476475 return AWS_OP_SUCCESS ;
477476}
478477
@@ -502,7 +501,6 @@ static int s_publish_fn_copy_report(struct aws_byte_cursor payload, void *userda
502501static int s_devicedefender_success_test (struct aws_allocator * allocator , void * ctx ) {
503502 (void )allocator ;
504503 struct mqtt_connection_test_data * state_test_data = ctx ;
505- aws_iotdevice_library_init (state_test_data -> allocator );
506504
507505 struct aws_iotdevice_defender_task_config * task_config = NULL ;
508506 struct aws_byte_cursor thing_name = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL ("TestSuccessThing" );
@@ -547,7 +545,6 @@ static int s_devicedefender_custom_metrics_success_test(struct aws_allocator *al
547545 (void )allocator ;
548546 struct mqtt_connection_test_data * state_test_data = ctx ;
549547
550- aws_iotdevice_library_init (state_test_data -> allocator );
551548 struct aws_byte_cursor thing_name = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL ("TestCustomMetricSuccessThing" );
552549 struct aws_iotdevice_defender_task_config * task_config = NULL ;
553550 ASSERT_SUCCESS (aws_iotdevice_defender_config_create (& task_config , allocator , & thing_name , AWS_IDDRF_JSON ));
@@ -625,7 +622,6 @@ static int s_devicedefender_stop_while_running(struct aws_allocator *allocator,
625622 (void )allocator ;
626623 struct mqtt_connection_test_data * state_test_data = ctx ;
627624
628- aws_iotdevice_library_init (state_test_data -> allocator );
629625 struct aws_byte_cursor thing_name = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL ("TestCustomMetricSuccessThing" );
630626 struct aws_iotdevice_defender_task_config * task_config = NULL ;
631627 ASSERT_SUCCESS (aws_iotdevice_defender_config_create (& task_config , allocator , & thing_name , AWS_IDDRF_JSON ));
@@ -687,7 +683,6 @@ static int s_devicedefender_publish_failure_callback_invoked(struct aws_allocato
687683 (void )allocator ;
688684 struct mqtt_connection_test_data * state_test_data = ctx ;
689685
690- aws_iotdevice_library_init (state_test_data -> allocator );
691686 struct aws_byte_cursor thing_name = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL ("TestCustomMetricSuccessThing" );
692687 struct aws_iotdevice_defender_task_config * task_config = NULL ;
693688 ASSERT_SUCCESS (aws_iotdevice_defender_config_create (& task_config , allocator , & thing_name , AWS_IDDRF_JSON ));
0 commit comments