fixed double dispatch in continuation tests

This commit is contained in:
Greg Wilkins 2013-06-11 10:50:15 +10:00
parent 9abed8e85d
commit 5d17bdcc27
2 changed files with 2 additions and 8 deletions

View File

@ -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());
}

View File

@ -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();
}
};