Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed tap message test cases

The flags were wrong here. We were passing a long, but the flag said
it was an int.

Change-Id: I58af8a9899025fc54db4d374bce6ca5d29b309af
Reviewed-on: http://review.couchbase.org/15947
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
commit 2ee17b256a25e5cc68832473cd245a075fc67a84 1 parent 87158ef
@mikewied mikewied authored ingenthr committed
View
2  src/test/java/net/spy/memcached/tapmessage/ResponseMessageBaseCase.java
@@ -147,7 +147,7 @@ public void testGetVBucketState() {
*/
@Test
public void testGetItemFlags() {
- int expResult = (int)0x0200;
+ int expResult = (int)0x0300;
int result = instance.getItemFlags();
assertEquals(expResult, result);
}
View
2  src/test/java/net/spy/memcached/tapmessage/ResponseMessageFixedOrderTest.java
@@ -54,7 +54,7 @@ public void setUp() {
binReqTapMutation.put(11, (byte)0x09); // body length 1 key 8 value
binReqTapMutation.put(27, (byte)0x04); // TAP_FLAG_NETWORK_BYTE_ORDER; fixed
// the flags themselves, 0x0200 for four bytes starting at 32
- binReqTapMutation.put(34, (byte)0x02);
+ binReqTapMutation.put(34, (byte)0x03);
// key and value
binReqTapMutation.put(40, (byte)'a');
View
2  src/test/java/net/spy/memcached/tapmessage/ResponseMessageWrongOrderTest.java
@@ -51,7 +51,7 @@ public void setUp() {
binReqTapMutation.put(5, (byte)0x06); // datatype
binReqTapMutation.put(11, (byte)0x09); // body length 1 key 8 value
// the flags themselves, 0x0200 for four bytes starting at 32
- binReqTapMutation.put(33, (byte)0x02);
+ binReqTapMutation.put(33, (byte)0x03);
// key and value
binReqTapMutation.put(40, (byte)'a');
Please sign in to comment.
Something went wrong with that request. Please try again.