diff options
author | subtly <subtly@users.noreply.github.com> | 2015-03-26 13:06:34 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-03-26 13:06:34 +0800 |
commit | 70184ece429006ff824b6165b389a38491bc73fc (patch) | |
tree | 84adf3fc98517f8d7207f0906945ddf06a3ea927 | |
parent | 671254626a604932a322df112a9ee8841d08f80d (diff) | |
download | dexon-solidity-70184ece429006ff824b6165b389a38491bc73fc.tar dexon-solidity-70184ece429006ff824b6165b389a38491bc73fc.tar.gz dexon-solidity-70184ece429006ff824b6165b389a38491bc73fc.tar.bz2 dexon-solidity-70184ece429006ff824b6165b389a38491bc73fc.tar.lz dexon-solidity-70184ece429006ff824b6165b389a38491bc73fc.tar.xz dexon-solidity-70184ece429006ff824b6165b389a38491bc73fc.tar.zst dexon-solidity-70184ece429006ff824b6165b389a38491bc73fc.zip |
correct net/test for ping packet
-rw-r--r-- | net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -145,7 +145,7 @@ public: bool success = false; }; -BOOST_AUTO_TEST_CASE(badPingNodePacket) +BOOST_AUTO_TEST_CASE(v2PingNodePacket) { // test old versino of pingNode packet w/new RLPStream s; @@ -153,7 +153,7 @@ BOOST_AUTO_TEST_CASE(badPingNodePacket) PingNode p((bi::udp::endpoint())); BOOST_REQUIRE_NO_THROW(p = PingNode::fromBytesConstRef(bi::udp::endpoint(), bytesConstRef(&s.out()))); - BOOST_REQUIRE(p.version == 0); + BOOST_REQUIRE(p.version == 2); } BOOST_AUTO_TEST_CASE(test_neighbours_packet) |