jgit/org.eclipse.jgit.http.test
Shawn O. Pearce f2d5187ea1 Fix racy HTTP tests by waiting for requests to finish
Ensure the background Jetty threads have been able to write the
request log record before the JUnit thread tries to read the set
of requests back.  This wait is necessary because the JUnit thread
may be able to continue as soon as Jetty has finished writing
the response onto the socket, and hasn't necessarily finished the
post-response logging activity.

By using a semaphore with a fixed number of resources, and using
one resource per request, but all of them when we want to read the
log, we implement a simple lock that requires there be no active
requests when we want to get the log from the JUnit thread.

Change-Id: I499e1c96418557185d0e19ba8befe892f26ce7e4
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2010-01-25 14:51:56 -08:00
..
.settings Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
META-INF Correct bundle, provider names to be consistent 2010-01-23 11:42:15 -08:00
tst/org/eclipse/jgit/http/test Fix racy HTTP tests by waiting for requests to finish 2010-01-25 14:51:56 -08:00
.classpath Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
.gitignore Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
.project Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
build.properties Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
org.eclipse.jgit.http--All-Tests.launch Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
plugin.properties Correct bundle, provider names to be consistent 2010-01-23 11:42:15 -08:00
pom.xml Add JUnit tests for HTTP transport 2010-01-12 12:30:42 -08:00