diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-14 13:24:18 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-19 07:25:36 -0400 |
commit | fa3365430c5fb57d7c0b5f2bce9fbbe290be93c3 (patch) | |
tree | 4395ac07b8f72de675cf1675a392e10abe068175 /src/test/fuzz/p2p_transport_deserializer.cpp | |
parent | faab4aaf2fa1153c6d76efc8113fa01b06943ece (diff) | |
download | bitcoin-fa3365430c5fb57d7c0b5f2bce9fbbe290be93c3.tar.xz |
net: Use mockable time for ping/pong, add tests
Diffstat (limited to 'src/test/fuzz/p2p_transport_deserializer.cpp')
-rw-r--r-- | src/test/fuzz/p2p_transport_deserializer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/p2p_transport_deserializer.cpp b/src/test/fuzz/p2p_transport_deserializer.cpp index 57393fed45..6fba2bfaba 100644 --- a/src/test/fuzz/p2p_transport_deserializer.cpp +++ b/src/test/fuzz/p2p_transport_deserializer.cpp @@ -30,7 +30,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) pch += handled; n_bytes -= handled; if (deserializer.Complete()) { - const int64_t m_time = std::numeric_limits<int64_t>::max(); + const std::chrono::microseconds m_time{std::numeric_limits<int64_t>::max()}; const CNetMessage msg = deserializer.GetMessage(Params().MessageStart(), m_time); assert(msg.m_command.size() <= CMessageHeader::COMMAND_SIZE); assert(msg.m_raw_message_size <= buffer.size()); |