@@ -458,7 +458,7 @@ TEST_P(IntegrateF, DISABLED_download) {
458458#endif // INTEGRATION_TESTS
459459 const auto data_dir = fs::path (DATA_DIR);
460460 const auto announce =
461- std::format (" http://{}:8000/announce" , " zit-opentracker " );
461+ std::format (" http://{}:8000/announce" , get_host_ip_from_host () );
462462 const auto torrent_file = generate_torrent_with_announce (
463463 data_dir / " 1MiB.dat" , announce, tmp_dir ());
464464 const uint8_t number_of_seeders = GetParam ();
@@ -494,7 +494,7 @@ TEST_F(IntegrateOodF, DISABLED_download_ood) {
494494#endif // INTEGRATION_TESTS
495495 const auto data_dir = fs::path (DATA_DIR);
496496 const auto announce =
497- std::format (" http://{}:8000/announce" , " zit-opentracker " );
497+ std::format (" http://{}:8000/announce" , get_host_ip_from_host () );
498498 const auto torrent_file = generate_torrent_with_announce (
499499 data_dir / " 1MiB.dat" , announce, tmp_dir ());
500500 constexpr uint8_t number_of_seeders = 1 ;
@@ -541,10 +541,10 @@ TEST_F(IntegrateF, DISABLED_download_dual_torrents) {
541541
542542 const auto torrent_file_1 = generate_torrent_with_announce (
543543 data_dir / " 1MiB.dat" ,
544- " http://" + std::string ( " zit-opentracker " ) + " :8000/announce" , tmp_dir ());
544+ " http://" + get_host_ip_from_host ( ) + " :8000/announce" , tmp_dir ());
545545 const auto torrent_file_2 = generate_torrent_with_announce (
546546 data_dir / " multi" ,
547- " http://" + std::string ( " zit-opentracker " ) + " :8000/announce" , tmp_dir ());
547+ " http://" + get_host_ip_from_host ( ) + " :8000/announce" , tmp_dir ());
548548
549549 auto tracker = start_tracker (data_dir);
550550
@@ -579,7 +579,7 @@ TEST_P(IntegrateF, DISABLED_download_part) {
579579 const auto data_dir = fs::path (DATA_DIR);
580580 const auto torrent_file = generate_torrent_with_announce (
581581 data_dir / " 1MiB.dat" ,
582- " http://" + std::string ( " zit-opentracker " ) + " :8000/announce" , tmp_dir ());
582+ " http://" + get_host_ip_from_host ( ) + " :8000/announce" , tmp_dir ());
583583 const auto download_dir = tmp_dir ();
584584
585585 auto tracker = start_tracker (data_dir);
@@ -621,7 +621,7 @@ TEST_F(Integrate, DISABLED_download_multi_part) {
621621 const auto data_dir = fs::path (DATA_DIR);
622622 const auto torrent_file = generate_torrent_with_announce (
623623 data_dir / " multi" ,
624- " http://" + std::string ( " zit-opentracker " ) + " :8000/announce" , tmp_dir ());
624+ " http://" + get_host_ip_from_host ( ) + " :8000/announce" , tmp_dir ());
625625 const auto download_dir = tmp_dir ();
626626
627627 auto tracker = start_tracker (data_dir);
@@ -665,7 +665,7 @@ TEST_F(Integrate, DISABLED_download_multi_file) {
665665 const auto data_dir = fs::path (DATA_DIR);
666666 const auto torrent_file = generate_torrent_with_announce (
667667 data_dir / " multi" ,
668- " http://" + std::string ( " zit-opentracker " ) + " :8000/announce" , tmp_dir ());
668+ " http://" + get_host_ip_from_host ( ) + " :8000/announce" , tmp_dir ());
669669
670670 auto tracker = start_tracker (data_dir);
671671
@@ -688,7 +688,7 @@ TEST_F(Integrate, DISABLED_upload) {
688688 const auto data_dir = fs::path (DATA_DIR);
689689 const auto torrent_file = generate_torrent_with_announce (
690690 data_dir / " 1MiB.dat" ,
691- " http://" + std::string ( " zit-opentracker " ) + " :8000/announce" , tmp_dir ());
691+ " http://" + get_host_ip_from_host ( ) + " :8000/announce" , tmp_dir ());
692692
693693 auto tracker = start_tracker (data_dir);
694694
@@ -742,7 +742,7 @@ TEST_F(Integrate, DISABLED_multi_upload) {
742742 const auto data_dir = fs::path (DATA_DIR);
743743 const auto torrent_file = generate_torrent_with_announce (
744744 data_dir / " multi" ,
745- " http://" + std::string ( " zit-opentracker " ) + " :8000/announce" , tmp_dir ());
745+ " http://" + get_host_ip_from_host ( ) + " :8000/announce" , tmp_dir ());
746746
747747 auto tracker = start_tracker (data_dir);
748748
0 commit comments