Skip to content

Commit bc892d2

Browse files
Mike WiederholdMichael Wiederhold
authored andcommitted
Fixed broken get and touch test
I was testing these throuh eclipse before and I didn't have assertions turned on so I falsely verifed the last commit that I checked in Change-Id: I01ca86771041b13e63f5073193eb3c49ed2947c9 Reviewed-on: http://review.couchbase.org/7009 Reviewed-by: Michael Wiederhold <[email protected]> Tested-by: Michael Wiederhold <[email protected]>
1 parent 48941d3 commit bc892d2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/test/java/net/spy/memcached/BinaryClientTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,11 @@ public void testCASPrependSuccess() throws Exception {
6666
public void testGATTimeout() throws Exception {
6767
if (isMembase()) {
6868
assertNull(client.get("gatkey"));
69-
assert client.set("gatkey", 2, "gatvalue").get().booleanValue();
70-
Thread.sleep(1000);
71-
assert client.getAndTouch("gatkey", 3).equals("gatvalue");
72-
Thread.sleep(2000);
69+
assert client.set("gatkey", 1, "gatvalue").get().booleanValue();
70+
assert client.getAndTouch("gatkey", 2).getValue().equals("gatvalue");
71+
Thread.sleep(1300);
7372
assert client.get("gatkey").equals("gatvalue");
74-
Thread.sleep(1100);
73+
Thread.sleep(2000);
7574
assertNull(client.getAndTouch("gatkey", 3));
7675
}
7776
}

0 commit comments

Comments
 (0)