Skip to content

Commit 8eb3e26

Browse files
committed
bugfix: fix errors in tests
1 parent 0833423 commit 8eb3e26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/danga/MemCached/test/UnitTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static void test10() {
103103

104104
public static void test11() {
105105
mc.set( "foo", new Integer( 100 ), new Date( System.currentTimeMillis() ));
106-
Thread.sleep( 1000 );
106+
try { Thread.sleep( 1000 ); } catch ( Exception ex ) { }
107107
assert mc.get( "foo" ) != null;
108108
}
109109

@@ -121,7 +121,7 @@ public static void test13() {
121121
Date d1 = new Date();
122122
mc.set("foo", d1);
123123
Date d2 = (Date) mc.get("foo");
124-
assert d.equals( d2 );
124+
assert d1.equals( d2 );
125125
}
126126

127127
public static void test14() {

0 commit comments

Comments
 (0)