aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_protocol_pack.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-12-10 17:34:50 -0800
committerAlexander Blair <snipa@jagtech.io>2020-12-10 17:34:50 -0800
commit1e9483a2d585d4ce4c2bf001862132ca46185c16 (patch)
treeb9a58d5cd7de6b8ed5da9df1c869449f0623611b /tests/unit_tests/test_protocol_pack.cpp
parent6bddd54f9d1195c4dcef04e096474c2ff7066f1d (diff)
parent7414e2bac11cbf9163ca16dc1b1510b4fd9a0d64 (diff)
downloadmonzero-core-1e9483a2d585d4ce4c2bf001862132ca46185c16.tar.gz
monzero-core-1e9483a2d585d4ce4c2bf001862132ca46185c16.tar.xz
monzero-core-1e9483a2d585d4ce4c2bf001862132ca46185c16.zip
Merge pull request #7009
7414e2bac Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
Diffstat (limited to 'tests/unit_tests/test_protocol_pack.cpp')
-rw-r--r--tests/unit_tests/test_protocol_pack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/test_protocol_pack.cpp b/tests/unit_tests/test_protocol_pack.cpp
index 312f18dfe..1a4fd30f8 100644
--- a/tests/unit_tests/test_protocol_pack.cpp
+++ b/tests/unit_tests/test_protocol_pack.cpp
@@ -36,7 +36,7 @@
TEST(protocol_pack, protocol_pack_command)
{
- std::string buff;
+ epee::byte_slice buff;
cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request r;
r.start_height = 1;
r.total_height = 3;
@@ -47,7 +47,7 @@ TEST(protocol_pack, protocol_pack_command)
ASSERT_TRUE(res);
cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request r2;
- res = epee::serialization::load_t_from_binary(r2, buff);
+ res = epee::serialization::load_t_from_binary(r2, epee::to_span(buff));
ASSERT_TRUE(res);
ASSERT_TRUE(r.m_block_ids.size() == i);
ASSERT_TRUE(r.start_height == 1);