servlet: missing @Rule annotation in GrpcServletSmokeTest (#10922)

This commit is contained in:
Alex Panchenko 2024-02-16 20:29:45 +02:00 committed by GitHub
parent 67dfe49ae6
commit 2f025b2b24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@ -52,6 +53,7 @@ public class GrpcServletSmokeTest {
private static final String HOST = "localhost";
private static final String MYAPP = "/grpc.testing.TestService";
@Rule
public final GrpcCleanupRule cleanupRule = new GrpcCleanupRule();
private final ScheduledExecutorService scheduledExecutorService =
Executors.newSingleThreadScheduledExecutor();