Skip to content

Commit

Permalink
Fixing network version test.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Jun 24, 2017
1 parent f81f53f commit 53b156e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rai/core_test/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ TEST (message, publish_serialization)
ASSERT_EQ (8, bytes.size ());
ASSERT_EQ (0x52, bytes [0]);
ASSERT_EQ (0x41, bytes [1]);
ASSERT_EQ (0x02, bytes [2]);
ASSERT_EQ (0x02, bytes [3]);
ASSERT_EQ (0x03, bytes [2]);
ASSERT_EQ (0x03, bytes [3]);
ASSERT_EQ (0x01, bytes [4]);
ASSERT_EQ (static_cast <uint8_t> (rai::message_type::publish), bytes [5]);
ASSERT_EQ (0x02, bytes [6]);
Expand All @@ -68,8 +68,8 @@ TEST (message, publish_serialization)
std::bitset <16> extensions;
ASSERT_FALSE (rai::message::read_header (stream, version_max, version_using, version_min, type, extensions));
ASSERT_EQ (0x01, version_min);
ASSERT_EQ (0x02, version_using);
ASSERT_EQ (0x02, version_max);
ASSERT_EQ (0x03, version_using);
ASSERT_EQ (0x03, version_max);
ASSERT_EQ (rai::message_type::publish, type);
}

Expand Down

0 comments on commit 53b156e

Please sign in to comment.