test(grpc): 리뷰가 넘긴 종료·채널·lane 증거 빈틈을 닫는다 #65
@@ -23,3 +23,4 @@
|
||||
{"schema": 1, "kind": "estimate", "task": "laptop-runner", "transcript": "27674009-98d8-4e0c-8946-fb1e590c4128", "started_at": "2026-11-20T07:00:00+09:00", "base": "a68ff147be881f6ede908a286c0fbc1f963f2307", "task_kind": "operate", "size": "large", "minutes": {"p30": 66, "p50": 99, "p80": 165}, "calls": {"p30": 165, "p50": 230, "p80": 330}, "output_tokens": {"p30": 145000, "p50": 203000, "p80": 290000}, "basis": "large 선례 7건 실측 중앙값에서 출발, 손 결정 6개·검증 run 3~4개와 대기, 보정 시간 0.55·호출 0.66·출력 0.58 곱함", "recorded_at": "2026-11-20T07:30+09:00"}
|
||||
{"schema": 1, "kind": "actual", "task": "be-ci-next", "transcript": "7f6aac72-543c-4f2a-a47c-550e4c727f99,5ef6a5a6-043b-4872-b8bf-0cc4ce2aee1f,0f7cd6ee-31dc-47e0-b33f-6900d1138d00,2d8f74db-59db-4b0f-970f-202c4a5fc46c,b669ba0e-0219-4098-a956-8479e8a74007,00277f8c-7b41-4984-ab25-6dd8d96e0786,a84946d1-7a15-491a-90fd-a8c21280ef0b", "minutes": 1139, "active_minutes": 485, "calls": 1652, "output_tokens": 1611695, "cache_read_tokens": 329186023, "max_context": 497013, "within": "over", "result": "done", "commits": ["fcd2edf4", "a0166b16", "2cfe2266", "9b76a3b4", "e9ee917f", "72268f30", "7c052142", "58d24346", "946f09bf", "5d9e7372", "3917dc01", "11c63825", "design-docs:45a1c2d", "design-docs:e535319"], "why": "세 값 모두 p80 위(작업 중 485분/254, 호출 1652/470, 출력 1.61M/348K). 예측은 PR 셋이었는데 총괄이 BE-5·BE-6+8과 리뷰가 찾은 고침 둘(#60·#61)을 더해 백엔드 PR 여덟·design-docs PR 둘이 됐다. context 250K 규칙으로 세션 일곱에 나눠 했고, 세션마다 노트·brief를 다시 읽었다. desktop은 runner·다른 세션과 잠금을 나눠 탐침·verify마다 기다렸다. BE-4 탐침의 dead store는 exclude-test.xml(이름 unused)과 Error Prone UnusedVariable 때문에 SpotBugs까지 가지 않아 세 번 고쳐 돌렸다. 다음 예측은 PR 수가 아니라 총괄이 더할 수 있는 고침 몫과 세션 인계 수를 근거로 쓴다. 실측은 2026-11-20 17:28까지 세션 일곱의 기록 합(max_context는 가장 큰 세션)", "recorded_at": "2026-11-20T17:29+09:00"}
|
||||
{"schema": 1, "kind": "actual", "task": "laptop-runner", "transcript": "27674009-98d8-4e0c-8946-fb1e590c4128", "minutes": 115, "active_minutes": 98, "calls": 220, "output_tokens": 329320, "within": "p50", "result": "done", "commits": ["b932d49b7", "1b9fbeb8a", "162c37c9f", "a1b6edccd"], "why": "시간·호출은 p50 안. 출력은 p80(290K) 위: H5로 설치를 묶음+install.sh로 다시 짰고, 리뷰 2라운드와 PR 뒤 도착한 총괄 답 넷(stop 시험·즉시 판단·incident·install 조건)을 반영했다", "recorded_at": "2026-11-20T17:29+09:00"}
|
||||
{"schema": 1, "kind": "actual", "task": "be-test-speed", "transcript": "46edb129-6c98-443f-b613-4c03a1995124,be35f975-1717-424b-be6e-d61f27431e20,fbf3edef-7c37-4d0d-831f-5e1869ec290c,2cac7b38-fb8e-4c7f-a664-f2b68025fc9b,c1a67390-a2f1-47a2-abf2-b69c1bddc72f,80b376f3-2368-4ed9-b993-334654d8e345,494a6187-4199-47db-a496-45f89ed5a586,6758746a-5e95-4999-9266-db165c5ece4c,b12d8138-aca2-4be2-8e15-bb4db5f431e2", "minutes": 992, "active_minutes": 277, "calls": 945, "output_tokens": 928115, "cache_read_tokens": 161892768, "max_context": 378335, "within": "over", "result": "partial", "commits": ["e9a57f95", "7de08bc3", "8259d0ca", "4db443e7", "120093a0", "e5558f25", "142b5265", "2f863c33", "40a10def", "30037329", "791bf1a9", "b9b3f107"], "why": "세 값 모두 p80 위(작업 중 277분/187, 호출 945/297, 출력 0.93M/203K). 예측은 PR 둘(BE-9·BE-10)이었는데 JPA claim 대기(#64)와 grpc 넘김 PR이 더해져 넷이 됐다. 리뷰가 넘긴 고침도 더해졌다(lease fencing, grpc 넘김의 다섯과 그 확인 리뷰의 셋). context 규칙으로 세션 아홉에 나눠 했고 세션마다 인계를 다시 읽었다. desktop 잠금을 다른 세션과 나눠 탐침·verify마다 기다렸다(RED 묶음은 다른 세션의 verify.sh merge 뒤로 11분). 다음 예측은 PR 수가 아니라 리뷰가 넘길 고침 몫과 세션 인계 수를 근거로 쓴다. 결과는 partial: (4) JPA TRUNCATE는 (3) grpc PR 병합 뒤에 하므로 이 줄에 없고, 끝나면 actual 줄을 하나 더한다. 실측은 2026-11-20 22:48까지 세션 아홉의 기록 합(max_context는 가장 큰 세션)", "recorded_at": "2026-11-20T22:48+09:00"}
|
||||
|
||||
@@ -62,7 +62,7 @@ Package root: `dev.caskeleton.adapter.inbound.grpc`.
|
||||
| `maxInboundMetadataBytes` | `8192` | 호출당 metadata 상한 (플랫폼과 같은 값) |
|
||||
| `maxConcurrentCallsPerConnection` | `100` | 연결당 동시 호출(HTTP/2 stream) 상한. 넘친 호출은 클라이언트에서 기다린다 |
|
||||
| `executorMaxPoolSize` | `32` | feature 호출을 실행하는 고정 스레드 수 (플랫폼 executor 기본값) |
|
||||
| `executorQueueCapacity` | `256` | 스레드를 기다릴 수 있는 호출 수(1..10000). 넘친 호출은 즉시 `RESOURCE_EXHAUSTED` |
|
||||
| `executorQueueCapacity` | `256` | 스레드를 기다릴 수 있는 호출 수(1..10000). 넘친 호출은 즉시 `UNAVAILABLE`(`SERVER_BUSY`) |
|
||||
| `defaultDeadline` | `10s` | deadline 없는(또는 더 긴) feature 호출의 서버 deadline. 넘으면 `DEADLINE_EXCEEDED` |
|
||||
| `keepAliveTime` / `keepAliveTimeout` | `30s` / `10s` | 서버 keep-alive ping 간격 / 응답 대기 (플랫폼 `GrpcServerProfile.stable`) |
|
||||
| `permitKeepAliveTime` | `30s` | 클라이언트 ping 최소 간격. `keepAliveTime` 이하 |
|
||||
@@ -110,6 +110,8 @@ listener 시작이 실패한다. 정책은 `Optional<Principal> authenticate(Met
|
||||
- `GrpcRequiresPermissionWireTest`: handler가 부른 `@RequiresPermission` 유스케이스를 web 어댑터의 method
|
||||
security와 권한 port가 판정하고, 권한 없는 호출자는 wire에서 `PERMISSION_DENIED`
|
||||
(`AUTHZ_INSUFFICIENT_PERMISSION`)를 받는다. web 어댑터는 이 시험에만 쓰는 `testImplementation`이다.
|
||||
- `GrpcServerRunnerBootTest`: feature 없이 기동한 서버의 health·reflection, 그리고 종료 drain 동안 listener가 살아
|
||||
health `NOT_SERVING`을 답하는지(로드밸런서가 드레이닝과 장애를 가르는 근거).
|
||||
|
||||
이 증거는 local insecure unary qualification일 뿐 production-ready 근거가 아니다. TLS/mTLS,
|
||||
external bind, 메서드별 deadline, streaming/backpressure, generated protobuf 호환성은 P2로 남아 있다.
|
||||
|
||||
@@ -214,7 +214,7 @@ Spring Boot BOM은 `io.grpc:*`/protobuf 버전을 관리하지 않는다. 이
|
||||
reflection-off, 모든 오류 경로의 안정 code/category 및 sentinel redaction을 검증한다. 서버 한도도
|
||||
같은 wire 에서 검증한다: 1 MiB 초과 요청 `RESOURCE_EXHAUSTED`(정확히 1 MiB 는 통과), deadline 없는
|
||||
느린 호출의 서버 기본 deadline `DEADLINE_EXCEEDED`, 더 짧은 클라이언트 deadline 유지, 연결당 동시
|
||||
호출 상한, executor·대기열 포화 시 즉시 `RESOURCE_EXHAUSTED`. `GrpcServerRunnerBootTest`는 종료
|
||||
호출 상한, executor·대기열 포화 시 즉시 `UNAVAILABLE`(`SERVER_BUSY`). `GrpcServerRunnerBootTest`는 종료
|
||||
drain 동안 listener 가 살아서 health NOT_SERVING 을 답하는지 검증한다.
|
||||
|
||||
이는 local plaintext unary 경계에 대한 P1 증거이며 production-ready 주장 근거가 아니다.
|
||||
|
||||
@@ -58,7 +58,8 @@ strictTestLanes {
|
||||
description = 'Runs exact no-skip gRPC conditional transport wire evidence.'
|
||||
requires 'dev.caskeleton.adapter.inbound.grpc.GrpcSafeActivationTest',
|
||||
'dev.caskeleton.adapter.inbound.grpc.GrpcP1BoundaryWireTest',
|
||||
'dev.caskeleton.adapter.inbound.grpc.GrpcRequiresPermissionWireTest'
|
||||
'dev.caskeleton.adapter.inbound.grpc.GrpcRequiresPermissionWireTest',
|
||||
'dev.caskeleton.adapter.inbound.grpc.GrpcServerRunnerBootTest'
|
||||
rejectSkipped = true
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ import java.util.concurrent.Semaphore;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
/**
|
||||
* Bounds how many feature calls the server holds, and refuses the rest with {@code
|
||||
* RESOURCE_EXHAUSTED} (review 03-09).
|
||||
* Bounds how many feature calls the server holds, and refuses the rest with {@code SERVER_BUSY}
|
||||
* ({@code UNAVAILABLE}) (review 03-09).
|
||||
*
|
||||
* <p>Why not just a bounded executor: when a bounded {@code ThreadPoolExecutor} rejects, io.grpc
|
||||
* does not answer the call. The rejection is logged on the Netty thread and the stream stays open
|
||||
|
||||
+54
-16
@@ -3,6 +3,7 @@ package dev.caskeleton.adapter.inbound.grpc;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.catchThrowable;
|
||||
import static org.assertj.core.api.Assertions.catchThrowableOfType;
|
||||
import static org.assertj.core.api.Assertions.tuple;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
import dev.caskeleton.shared.error.Category;
|
||||
@@ -45,6 +46,7 @@ import java.util.concurrent.TimeoutException;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.function.Consumer;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
@@ -74,7 +76,6 @@ class GrpcP1BoundaryWireTest {
|
||||
unaryMethod("CloseHandler");
|
||||
private static final MethodDescriptor<String, String> SLOW_METHOD = unaryMethod("Slow");
|
||||
private static final MethodDescriptor<String, String> GATED_METHOD = unaryMethod("Gated");
|
||||
private static final CountDownLatch CLOSE_HANDLER_RAN = new CountDownLatch(1);
|
||||
|
||||
/** The platform's GrpcTransportLimits.DEFAULT_MAX_MESSAGE_BYTES, which this adapter mirrors. */
|
||||
private static final int ONE_MIB = 1024 * 1024;
|
||||
@@ -93,8 +94,14 @@ class GrpcP1BoundaryWireTest {
|
||||
/** The longest a gated handler waits, so a test that forgets to release cannot hang the JVM. */
|
||||
private static final long GATE_CAP_SECONDS = 30;
|
||||
|
||||
private static final AtomicInteger SLOW_IN_FLIGHT = new AtomicInteger();
|
||||
private static final AtomicInteger SLOW_MAX_IN_FLIGHT = new AtomicInteger();
|
||||
/**
|
||||
* What the feature handlers saw in the current test. Each test starts with a fresh one, and a
|
||||
* handler takes the one current when it starts, so nothing an earlier test's calls did can pass
|
||||
* or fail a later test: the close-handler latch counts down only once, and a slow call still
|
||||
* finishing from an earlier test would count into the in-flight numbers.
|
||||
*/
|
||||
private static final AtomicReference<HandlerTrace> TRACE =
|
||||
new AtomicReference<>(new HandlerTrace());
|
||||
|
||||
private final ApplicationContextRunner contextRunner =
|
||||
new ApplicationContextRunner()
|
||||
@@ -109,6 +116,11 @@ class GrpcP1BoundaryWireTest {
|
||||
// production default. In-flight calls still get the shutdown grace.
|
||||
"app.grpc.server.shutdown-drain-seconds=0");
|
||||
|
||||
@BeforeEach
|
||||
void startAFreshHandlerTrace() {
|
||||
TRACE.set(new HandlerTrace());
|
||||
}
|
||||
|
||||
@Test
|
||||
void missingAuthenticationMetadataIsRejectedWithAStableContract() {
|
||||
withChannel(
|
||||
@@ -232,7 +244,7 @@ class GrpcP1BoundaryWireTest {
|
||||
unary(authenticated(channel), CLOSE_HANDLER_METHOD, "ok");
|
||||
|
||||
// then
|
||||
assertThat(await(CLOSE_HANDLER_RAN)).isTrue();
|
||||
assertThat(await(TRACE.get().closeHandlerRan())).isTrue();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -347,7 +359,6 @@ class GrpcP1BoundaryWireTest {
|
||||
contextRunner.withPropertyValues("app.grpc.server.max-concurrent-calls-per-connection=1"),
|
||||
channel -> {
|
||||
// given
|
||||
SLOW_MAX_IN_FLIGHT.set(0);
|
||||
Channel caller = authenticated(channel);
|
||||
CallOptions bounded = CallOptions.DEFAULT.withDeadlineAfter(5, TimeUnit.SECONDS);
|
||||
ListenableFuture<String> first =
|
||||
@@ -360,7 +371,7 @@ class GrpcP1BoundaryWireTest {
|
||||
|
||||
// then
|
||||
assertThat(responses).containsExactly("slow-done", "slow-done");
|
||||
assertThat(SLOW_MAX_IN_FLIGHT.get()).isEqualTo(1);
|
||||
assertThat(TRACE.get().slowMaxInFlight().get()).isEqualTo(1);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -388,23 +399,40 @@ class GrpcP1BoundaryWireTest {
|
||||
// when
|
||||
boolean refusedWhileHeld = awaitAnyDone(calls);
|
||||
gate.countDown();
|
||||
List<Status> outcomes = calls.stream().map(GrpcP1BoundaryWireTest::outcome).toList();
|
||||
List<Outcome> outcomes = calls.stream().map(GrpcP1BoundaryWireTest::outcome).toList();
|
||||
|
||||
// then
|
||||
assertThat(refusedWhileHeld).as("one call is refused while the others hold").isTrue();
|
||||
assertThat(outcomes)
|
||||
.extracting(Status::getCode)
|
||||
.extracting(Outcome::code)
|
||||
.containsExactlyInAnyOrder(Status.Code.OK, Status.Code.OK, Status.Code.UNAVAILABLE);
|
||||
assertThat(outcomes)
|
||||
.filteredOn(status -> !status.isOk())
|
||||
.extracting(Status::getDescription)
|
||||
.containsExactly(ClientErrorMessages.of(Category.TRANSIENT_DEPENDENCY));
|
||||
.filteredOn(outcome -> outcome.code() != Status.Code.OK)
|
||||
.extracting(Outcome::description, Outcome::errorCode, Outcome::retryable)
|
||||
.containsExactly(
|
||||
tuple(
|
||||
ClientErrorMessages.of(Category.TRANSIENT_DEPENDENCY),
|
||||
OperationalError.SERVER_BUSY.code(),
|
||||
"true"));
|
||||
});
|
||||
}
|
||||
|
||||
private static Status outcome(ListenableFuture<String> call) {
|
||||
/** How one call ended: its status, and the error trailers the server closed it with. */
|
||||
private record Outcome(
|
||||
Status.Code code, String description, String errorCode, String retryable) {}
|
||||
|
||||
private static Outcome outcome(ListenableFuture<String> call) {
|
||||
Throwable failure = catchThrowable(() -> call.get(GATE_CAP_SECONDS, TimeUnit.SECONDS));
|
||||
return failure == null ? Status.OK : Status.fromThrowable(failure);
|
||||
if (failure == null) {
|
||||
return new Outcome(Status.Code.OK, null, null, null);
|
||||
}
|
||||
Status status = Status.fromThrowable(failure);
|
||||
Metadata trailers = Status.trailersFromThrowable(failure);
|
||||
return new Outcome(
|
||||
status.getCode(),
|
||||
status.getDescription(),
|
||||
trailers == null ? null : trailers.get(GrpcStatusMapper.CODE_KEY),
|
||||
trailers == null ? null : trailers.get(GrpcStatusMapper.RETRYABLE_KEY));
|
||||
}
|
||||
|
||||
/** Whether one of {@code calls} completes while the gate still holds the others. */
|
||||
@@ -625,7 +653,7 @@ class GrpcP1BoundaryWireTest {
|
||||
ServerCalls.asyncUnaryCall(
|
||||
(String request, StreamObserver<String> observer) -> {
|
||||
((ServerCallStreamObserver<String>) observer)
|
||||
.setOnCloseHandler(CLOSE_HANDLER_RAN::countDown);
|
||||
.setOnCloseHandler(TRACE.get().closeHandlerRan()::countDown);
|
||||
observer.onNext(request);
|
||||
observer.onCompleted();
|
||||
}))
|
||||
@@ -658,7 +686,8 @@ class GrpcP1BoundaryWireTest {
|
||||
* Context is cancelled — the cooperative behavior a deadline is meant to trigger.
|
||||
*/
|
||||
private static void holdUntilCancelled() {
|
||||
SLOW_MAX_IN_FLIGHT.accumulateAndGet(SLOW_IN_FLIGHT.incrementAndGet(), Math::max);
|
||||
HandlerTrace trace = TRACE.get();
|
||||
trace.slowMaxInFlight().accumulateAndGet(trace.slowInFlight().incrementAndGet(), Math::max);
|
||||
try {
|
||||
long until = System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(SLOW_HANDLER_HOLD_MILLIS);
|
||||
while (System.nanoTime() < until && !Context.current().isCancelled()) {
|
||||
@@ -667,7 +696,7 @@ class GrpcP1BoundaryWireTest {
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
} finally {
|
||||
SLOW_IN_FLIGHT.decrementAndGet();
|
||||
trace.slowInFlight().decrementAndGet();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -694,6 +723,15 @@ class GrpcP1BoundaryWireTest {
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Whether the close handler ran, and how many slow calls the handler held at once. */
|
||||
private record HandlerTrace(
|
||||
CountDownLatch closeHandlerRan, AtomicInteger slowInFlight, AtomicInteger slowMaxInFlight) {
|
||||
|
||||
HandlerTrace() {
|
||||
this(new CountDownLatch(1), new AtomicInteger(), new AtomicInteger());
|
||||
}
|
||||
}
|
||||
|
||||
private enum StringMarshaller implements MethodDescriptor.Marshaller<String> {
|
||||
INSTANCE;
|
||||
|
||||
|
||||
+3
-1
@@ -120,7 +120,9 @@ class GrpcRequiresPermissionWireTest {
|
||||
result[0] = action.apply(channel);
|
||||
} finally {
|
||||
channel.shutdownNow();
|
||||
channel.awaitTermination(5, TimeUnit.SECONDS);
|
||||
assertThat(channel.awaitTermination(5, TimeUnit.SECONDS))
|
||||
.as("test channel terminated")
|
||||
.isTrue();
|
||||
}
|
||||
});
|
||||
@SuppressWarnings("unchecked") // the single value action.apply returned
|
||||
|
||||
+17
@@ -139,6 +139,23 @@ class GrpcSafeActivationTest {
|
||||
Duration.ofSeconds(30));
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("종료 기본값은 grace 5초 안에서 listener를 연 채 2초 drain한다")
|
||||
void shutdownDefaultsDrainTwoSecondsInsideAFiveSecondGrace() {
|
||||
// given — the AGENTS.md table states both values and the README graceful-shutdown item the 2 s
|
||||
// drain, and a load balancer relies on the drain being on by default. No boot test runs with
|
||||
// these defaults: the others set the drain to 0 for speed, and the drain test sets its own 6 s
|
||||
// drain and 8 s grace.
|
||||
GrpcServerSettings properties = new GrpcServerSettings();
|
||||
|
||||
// when
|
||||
var shutdown =
|
||||
List.of(properties.getShutdownDrainSeconds(), properties.getShutdownGraceSeconds());
|
||||
|
||||
// then
|
||||
assertThat(shutdown).containsExactly(2, 5);
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("drain 대기가 종료 grace보다 길면 기동이 실패한다")
|
||||
void aDrainDelayLongerThanTheShutdownGraceFailsStartup() {
|
||||
|
||||
+12
-4
@@ -73,7 +73,7 @@ class GrpcServerRunnerBootTest {
|
||||
assertThat(listServicesViaReflection(channel))
|
||||
.contains("grpc.health.v1.Health", "grpc.reflection.v1.ServerReflection");
|
||||
} finally {
|
||||
channel.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
|
||||
close(channel);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -95,7 +95,7 @@ class GrpcServerRunnerBootTest {
|
||||
.contains("grpc.health.v1.Health", "grpc.reflection.v1.ServerReflection")
|
||||
.doesNotContain("test.Private");
|
||||
} finally {
|
||||
channel.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
|
||||
close(channel);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -135,8 +135,10 @@ class GrpcServerRunnerBootTest {
|
||||
.as("health answers from the first one other than SERVING, for %s more", HOLD)
|
||||
.containsOnly(ServingStatus.NOT_SERVING.name());
|
||||
} finally {
|
||||
stopping.join(Duration.ofSeconds(20));
|
||||
channel.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
|
||||
// stop() takes at most the 8 s grace, drain included; 20 s means it hung.
|
||||
boolean stopped = stopping.join(Duration.ofSeconds(20));
|
||||
close(channel);
|
||||
assertThat(stopped).as("runner.stop() returned within 20 s").isTrue();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -168,6 +170,12 @@ class GrpcServerRunnerBootTest {
|
||||
return answers;
|
||||
}
|
||||
|
||||
private static void close(ManagedChannel channel) throws InterruptedException {
|
||||
assertThat(channel.shutdownNow().awaitTermination(5, TimeUnit.SECONDS))
|
||||
.as("test channel terminated")
|
||||
.isTrue();
|
||||
}
|
||||
|
||||
private static String answer(ManagedChannel channel) {
|
||||
try {
|
||||
return health(channel).name();
|
||||
|
||||
Reference in New Issue
Block a user