fixed double dispatch in continuation tests
This commit is contained in:
parent
9abed8e85d
commit
5d17bdcc27
|
@ -311,7 +311,6 @@ public class HttpChannelState
|
|||
boolean dispatch;
|
||||
synchronized (this)
|
||||
{
|
||||
|
||||
switch(_state)
|
||||
{
|
||||
case ASYNCSTARTED:
|
||||
|
@ -326,11 +325,7 @@ public class HttpChannelState
|
|||
_event.setDispatchTarget(context,path);
|
||||
_dispatched=true;
|
||||
break;
|
||||
|
||||
case REDISPATCH:
|
||||
_event.setDispatchTarget(context,path);
|
||||
return;
|
||||
|
||||
|
||||
default:
|
||||
throw new IllegalStateException(this.getStatusString());
|
||||
}
|
||||
|
|
|
@ -77,7 +77,6 @@ public abstract class ContinuationBase
|
|||
protected void doSuspendResume() throws Exception
|
||||
{
|
||||
String response=process("suspend=200&resume=0",null);
|
||||
System.err.println(response);
|
||||
assertContains("RESUMED",response);
|
||||
assertNotContains("history: onTimeout",response);
|
||||
assertContains("history: onComplete",response);
|
||||
|
@ -503,7 +502,7 @@ public abstract class ContinuationBase
|
|||
public void onTimeout(Continuation continuation)
|
||||
{
|
||||
((HttpServletResponse)continuation.getServletResponse()).addHeader("history","onTimeout");
|
||||
continuation.resume();
|
||||
// continuation.resume();
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue