|
@@ -139,10 +139,10 @@ void DHTBucketTest::testIsInRange()
|
|
|
}
|
|
|
{
|
|
|
// nodeID is out of range: larger than this range
|
|
|
- unsigned char nodeID[] = { 0x10, 0x00, 0x00, 0x00, 0x00,
|
|
|
- 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
- 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
- 0x00, 0x00, 0x00, 0x00, 0x00 };
|
|
|
+ unsigned char nodeID[] = { 0x01, 0x02, 0xff, 0xff, 0xff,
|
|
|
+ 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
|
+ 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
|
+ 0xff, 0xff, 0xff, 0xff, 0xff };
|
|
|
SharedHandle<DHTNode> node(new DHTNode(nodeID));
|
|
|
DHTBucket bucket(16, max, min, localNode);
|
|
|
CPPUNIT_ASSERT(!bucket.isInRange(node));
|