File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/com/danga/MemCached/test Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -170,12 +170,9 @@ public static void test11() throws Exception {
170170 public static void test12 () throws Exception {
171171
172172 mc .set ( "foo" , new Integer ( 100 ), new Date ( System .currentTimeMillis () ));
173-
174173 Thread .sleep ( 1000 );
175174
176- if ( mc .get ( "foo" ) != null )
177- throw new Exception ();
178-
175+ assert mc .get ( "foo" ) != null ;
179176 }
180177
181178 public static void test13 () throws Exception {
@@ -186,8 +183,8 @@ public static void test13() throws Exception {
186183 mc .incr ("foo" , (long )5 ); // foo now == 6
187184 long j = mc .decr ("foo" , (long )2 ); // foo now == 4
188185
189- if ( j != 4 )
190- throw new Exception ( );
186+ assert j != 4 ;
187+ assert j == mc . getCounter ( "foo" );
191188 }
192189
193190 public static void test14 () throws Exception {
@@ -212,7 +209,7 @@ public static void test14() throws Exception {
212209 */
213210 public static void main (String [] args ) throws Exception {
214211
215- String [] serverlist = { "cache0.int.meetup.com :1624" };
212+ String [] serverlist = { "192.168.1.1 :1624" };
216213
217214 // initialize the pool for memcache servers
218215 SockIOPool pool = SockIOPool .getInstance ();
You can’t perform that action at this time.
0 commit comments