diff options
Diffstat (limited to 'src/unittest/test_connection.cpp')
-rw-r--r-- | src/unittest/test_connection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unittest/test_connection.cpp b/src/unittest/test_connection.cpp index 5a2e32ca8..dcfc3b4e5 100644 --- a/src/unittest/test_connection.cpp +++ b/src/unittest/test_connection.cpp @@ -115,7 +115,7 @@ void TestConnection::testHelpers() infostream<<"data1[0]="<<((u32)data1[0]&0xff)<<std::endl;*/ UASSERT(p2.getSize() == 3 + data1.getSize()); - UASSERT(readU8(&p2[0]) == TYPE_RELIABLE); + UASSERT(readU8(&p2[0]) == con::PACKET_TYPE_RELIABLE); UASSERT(readU16(&p2[1]) == seqnum); UASSERT(readU8(&p2[3]) == data1[0]); } @@ -290,13 +290,13 @@ void TestConnection::testConnectSendReceive() infostream << "..."; infostream << std::endl; - Buffer<u8> sentdata = pkt.oldForgePacket(); + SharedBuffer<u8> sentdata = pkt.oldForgePacket(); server.Send(peer_id_client, 0, &pkt, true); //sleep_ms(3000); - Buffer<u8> recvdata; + SharedBuffer<u8> recvdata; infostream << "** running client.Receive()" << std::endl; u16 peer_id = 132; u16 size = 0; |