[jboss-cvs] JBossAS SVN: r110255 - branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 4 03:49:25 EST 2011
Author: mlinhard
Date: 2011-01-04 03:49:25 -0500 (Tue, 04 Jan 2011)
New Revision: 110255
Modified:
branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedClientTestCase.java
Log:
added sleep period to testExpTimeAbsolutePast() to avoid failure when get is called too quickly (under one millisecond) after set.
Modified: branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedClientTestCase.java
===================================================================
--- branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedClientTestCase.java 2011-01-04 04:15:38 UTC (rev 110254)
+++ branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedClientTestCase.java 2011-01-04 08:49:25 UTC (rev 110255)
@@ -287,7 +287,10 @@
mc.writeln("A");
mc.flush();
assertEquals("STORED", mc.readln());
- // should expire immediately
+ // should expire immediately (the next millisecond)
+ // the sleep here is only to make sure that System.currentTimeMillis()
+ // increases before next get
+ Thread.sleep(5);
assertNull(mc.get(KEY_A));
}
More information about the jboss-cvs-commits
mailing list