HttpResponseCache icon indicating copy to clipboard operation
HttpResponseCache copied to clipboard

Failed test 'testConditionalHitUpdatesCache'

Open tprochazka opened this issue 13 years ago • 4 comments

In current master version, release as 1.1 is one failed test? It is bug in test or in library?

Failed tests: testConditionalHitUpdatesCache(com.integralblue.httpresponsecache.compat.libcore.net.http.HttpResponseCacheTest): null expected:<[A]> but was:<[B]>

Tests run: 131, Failures: 1, Errors: 0, Skipped: 0

tprochazka avatar Aug 11 '12 08:08 tprochazka

No tests fail on my system. What JDK are you using? I'm using Oracle 7u3. If you have multiple JDKs, perhaps you could try them and find out which fail, and which (if any) succeed?

candrews avatar Aug 13 '12 15:08 candrews

Sorry for delay.

I have java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b05) Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing) on Windows 7, x64

Here is complete report https://gist.github.com/3393007

tprochazka avatar Aug 19 '12 07:08 tprochazka

I tried run it also on Ubuntu with Java 1.6.0.24 https://gist.github.com/3394109 There failed different test. Interesting that this depend on JVM version or platform too much :-(

tprochazka avatar Aug 19 '12 10:08 tprochazka

when int read = in.read(buffer, offset, Math.min(count, bytesRemainingInChunk)); reaches -1, it throws that error. it sounds like the server didn't send chunk length

iNoles avatar Aug 19 '12 19:08 iNoles