Fix network unit tests after epee changes

This commit is contained in:
Lee Clagett 2020-03-28 13:30:22 -04:00
parent 72262b348a
commit 0c29e17581
1 changed files with 2 additions and 2 deletions

View File

@ -739,7 +739,7 @@ TEST(i2p_address, epee_serializev_b32)
EXPECT_EQ(std::strlen(b32_i2p), host.size()); EXPECT_EQ(std::strlen(b32_i2p), host.size());
host.push_back('k'); 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` 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()); EXPECT_EQ(std::strlen(net::i2p_address::unknown_str()), host.size());
host.push_back('k'); 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` EXPECT_TRUE(command.load(stg)); // poor error reporting from `KV_SERIALIZE`
} }