diff --git a/test/tap/test_helpers/test_init.cpp b/test/tap/test_helpers/test_init.cpp index 4c9cb064f..b3af46f82 100644 --- a/test/tap/test_helpers/test_init.cpp +++ b/test/tap/test_helpers/test_init.cpp @@ -183,10 +183,14 @@ int test_init_hostgroups() { } MyHGM = new MySQL_HostGroups_Manager(); - MyHGM->init(); + // NOTE: We intentionally do NOT call MyHGM->init() here. + // init() starts background threads (HGCU_thread, GTID_syncer) + // that run forever and would cause the test process to hang on + // exit. The constructor alone sets up the internal SQLite3 + // database and all data structures needed for unit testing. PgHGM = new PgSQL_HostGroups_Manager(); - PgHGM->init(); + // PgHGM->init() is a no-op, but we skip it for consistency. return 0; }