Skip to content

Commit

Permalink
Fixed tap message test cases
Browse files Browse the repository at this point in the history
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
Mike Wiederhold authored and ingenthr committed Jun 2, 2012
1 parent 87158ef commit 2ee17b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -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);
}
Expand Down
Expand Up @@ -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');
Expand Down
Expand Up @@ -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');
Expand Down

0 comments on commit 2ee17b2

Please sign in to comment.