Issue #4794 Test for asyncIsStarted for setReadListener (#4804)

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2020-04-24 10:01:04 +02:00 committed by GitHub
parent 53246f977c
commit 8153efc2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -733,7 +733,7 @@ public class HttpInput extends ServletInputStream implements Runnable
_listener = Objects.requireNonNull(readListener);
//illegal if async not started
if (!_channelState.isAsync())
if (!_channelState.isAsyncStarted())
throw new IllegalStateException("Async not started");
if (isError())

View File

@ -138,11 +138,11 @@ public class HttpInputTest
}
@Override
public boolean isAsync()
public boolean isAsyncStarted()
{
if (isFakeAsyncState())
return true;
return super.isAsync();
return super.isAsyncStarted();
}
@Override