Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350283 - AsyncSslHttpExchangeTest.testPerf() fails on MacOS X
Summary: AsyncSslHttpExchangeTest.testPerf() fails on MacOS X
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: client (show other bugs)
Version: 7.4.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 7.4.x   Edit
Assignee: Michael Gorovoy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 11:38 EDT by Michael Gorovoy CLA
Modified: 2011-09-13 14:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gorovoy CLA 2011-06-24 11:38:50 EDT
AsyncSslHttpExchangeTest and ExternalKeyStoreAsyncSslHttpExchangeTest fail on MacOS X with the following exception.

-------------------------------------------------------------------------------
Test set: org.eclipse.jetty.client.AsyncSslHttpExchangeTest
-------------------------------------------------------------------------------
Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.942 sec <<< FAILURE!
testPerf(org.eclipse.jetty.client.AsyncSslHttpExchangeTest)  Time elapsed: 0.675 sec  <<< FAILURE!
junit.framework.AssertionFailedError: nb=1 close=true expected:<0> but was:<1>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:130)
	at org.eclipse.jetty.client.HttpExchangeTest.sender(HttpExchangeTest.java:228)
	at org.eclipse.jetty.client.HttpExchangeTest.testPerf(HttpExchangeTest.java:91)
	at org.eclipse.jetty.client.SslHttpExchangeTest.testPerf(SslHttpExchangeTest.java:97)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
	at $Proxy0.invoke(Unknown Source)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Comment 1 Michael Gorovoy CLA 2011-06-24 11:47:24 EDT
Added check to not run this specific test on MacOS X unless -DSTRESS is enabled.

Committed r3423
Comment 2 Joakim Erdfelt CLA 2011-09-13 14:51:54 EDT
No longer fails on OSX with 7.5.2-SNAPSHOT