453636 Improved spin detection on test

This commit is contained in:
Greg Wilkins 2014-12-10 10:16:16 +01:00
parent dfe9dc3115
commit 28fb3e45d0
1 changed files with 2 additions and 2 deletions

View File

@ -751,11 +751,11 @@ public class SslBytesServerTest extends SslBytesTest
// Check that we did not spin
TimeUnit.MILLISECONDS.sleep(1000);
Assert.assertThat(sslFills.get(), Matchers.lessThan(1000));
Assert.assertThat(sslFills.get(), Matchers.lessThan(2000));
Assert.assertThat(sslFlushes.get(), Matchers.lessThan(20));
// An average of 958 httpParses is seen in standard Oracle JDK's
// An average of 1183 httpParses is seen in OpenJDK JVMs.
Assert.assertThat(httpParses.get(), Matchers.lessThan(500));
Assert.assertThat(httpParses.get(), Matchers.lessThan(2000));
client.close();