Code cleanups.
This commit is contained in:
parent
a3b5e7ebb7
commit
a38e819907
|
@ -102,7 +102,6 @@ public class AsyncIOServletTest
|
|||
throw new IllegalStateException();
|
||||
}
|
||||
scope.set(new Throwable());
|
||||
|
||||
}
|
||||
@Override
|
||||
public void exitScope(Context context, Request request)
|
||||
|
@ -116,8 +115,6 @@ public class AsyncIOServletTest
|
|||
server.start();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static void assertScope()
|
||||
{
|
||||
if (scope.get()==null)
|
||||
|
@ -216,7 +213,7 @@ public class AsyncIOServletTest
|
|||
}
|
||||
line=in.readLine();
|
||||
|
||||
Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
|
||||
assertTrue(latch.await(5, TimeUnit.SECONDS));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -414,7 +411,7 @@ public class AsyncIOServletTest
|
|||
SimpleHttpParser parser = new SimpleHttpParser();
|
||||
SimpleHttpResponse response = parser.readResponse(new BufferedReader(new InputStreamReader(client.getInputStream(), "UTF-8")));
|
||||
|
||||
Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
|
||||
assertTrue(latch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertEquals("500", response.getCode());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue