interop-testing: deflake MoreInProcessTest

This commit is contained in:
Carl Mastrangelo 2019-01-22 18:00:14 -08:00 committed by GitHub
parent 0e32152229
commit d7659411eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -50,8 +50,10 @@ import org.junit.runners.JUnit4;
public class MoreInProcessTest { public class MoreInProcessTest {
private static final String UNIQUE_SERVER_NAME = private static final String UNIQUE_SERVER_NAME =
"in-process server for " + MoreInProcessTest.class; "in-process server for " + MoreInProcessTest.class;
// Use a fairly large timeout to work around classloading slowness.
@Rule @Rule
public final Timeout globalTimeout = new Timeout(1, TimeUnit.SECONDS); public final Timeout globalTimeout = new Timeout(10, TimeUnit.SECONDS);
// use a mutable service registry for later registering the service impl for each test case. // use a mutable service registry for later registering the service impl for each test case.
private final MutableHandlerRegistry serviceRegistry = new MutableHandlerRegistry(); private final MutableHandlerRegistry serviceRegistry = new MutableHandlerRegistry();
private final Server inProcessServer = InProcessServerBuilder.forName(UNIQUE_SERVER_NAME) private final Server inProcessServer = InProcessServerBuilder.forName(UNIQUE_SERVER_NAME)