aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-03-28 14:10:41 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-03-28 14:10:41 -0500
commit1df79ae3aae0180d09f4bb9fa19d61a38ac28278 (patch)
treec4b15851f56b3431a23a90d52fbb5e4a2d73cc85 /tests
parentMerge pull request #6299 (diff)
parentFix network unit tests after epee changes (diff)
downloadmonero-1df79ae3aae0180d09f4bb9fa19d61a38ac28278.tar.xz
Merge pull request #6407
0c29e17 Fix network unit tests after epee changes (vtnerd)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/net.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/net.cpp b/tests/unit_tests/net.cpp
index 250dc35f5..36cb28ae0 100644
--- a/tests/unit_tests/net.cpp
+++ b/tests/unit_tests/net.cpp
@@ -739,7 +739,7 @@ TEST(i2p_address, epee_serializev_b32)
EXPECT_EQ(std::strlen(b32_i2p), host.size());
host.push_back('k');
- EXPECT_TRUE(stg.set_value("host", host, stg.open_section("i2p", nullptr, false)));
+ EXPECT_TRUE(stg.set_value("host", std::string{host}, stg.open_section("i2p", nullptr, false)));
EXPECT_TRUE(command.load(stg)); // poor error reporting from `KV_SERIALIZE`
}
@@ -790,7 +790,7 @@ TEST(i2p_address, epee_serialize_unknown)
EXPECT_EQ(std::strlen(net::i2p_address::unknown_str()), host.size());
host.push_back('k');
- EXPECT_TRUE(stg.set_value("host", host, stg.open_section("i2p", nullptr, false)));
+ EXPECT_TRUE(stg.set_value("host", std::string{host}, stg.open_section("i2p", nullptr, false)));
EXPECT_TRUE(command.load(stg)); // poor error reporting from `KV_SERIALIZE`
}