From ea500ecdcdb4df6a03db55f75cd47d38fad5f14b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 8 May 2023 17:53:25 -0500 Subject: [PATCH] fixup! feat: add global IP cache, fix UDP connection failure warnings (#5506) --- tests/libtransmission/global-ip-cache-test.cc | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/libtransmission/global-ip-cache-test.cc b/tests/libtransmission/global-ip-cache-test.cc index effbf14f3..a26e2eb9b 100644 --- a/tests/libtransmission/global-ip-cache-test.cc +++ b/tests/libtransmission/global-ip-cache-test.cc @@ -98,17 +98,17 @@ protected: TEST_F(GlobalIPCacheTest, bindAddr) { - static auto const Ipv4Tests = std::array, 4>{ - { { "8.8.8.8"s, "8.8.8.8"sv }, - { "192.168.133.133"s, "192.168.133.133"sv }, - { "2001:1890:1112:1::20"s, "0.0.0.0"sv }, - { "asdasd"s, "0.0.0.0"sv } } + static constexpr auto Ipv4Tests = std::array, 4>{ + { { "8.8.8.8"sv, "8.8.8.8"sv }, + { "192.168.133.133"sv, "192.168.133.133"sv }, + { "2001:1890:1112:1::20"sv, "0.0.0.0"sv }, + { "asdasd"sv, "0.0.0.0"sv } } }; - static auto const Ipv6Tests = std::array, 4>{ - { { "fd12:3456:789a:1::1"s, "fd12:3456:789a:1::1"sv }, - { "192.168.133.133"s, "::"sv }, - { "2001:1890:1112:1::20"s, "2001:1890:1112:1::20"sv }, - { "asdasd"s, "::"sv } } + static constexpr auto Ipv6Tests = std::array, 4>{ + { { "fd12:3456:789a:1::1"sv, "fd12:3456:789a:1::1"sv }, + { "192.168.133.133"sv, "::"sv }, + { "2001:1890:1112:1::20"sv, "2001:1890:1112:1::20"sv }, + { "asdasd"sv, "::"sv } } }; // IPv4