mirror of https://github.com/grpc/grpc-java.git
interop-testing: Remove comparison of proto field to null
Proto fields aren't null. The getter will return an empty string instead of null. cl/326415191
This commit is contained in:
parent
6eced95a54
commit
0773c1aa05
|
|
@ -16,8 +16,6 @@
|
|||
|
||||
package io.grpc.testing.integration;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import com.google.protobuf.ByteString;
|
||||
import io.grpc.ManagedChannel;
|
||||
import io.grpc.StatusRuntimeException;
|
||||
|
|
@ -175,7 +173,6 @@ public final class GrpclbLongLivedAffinityTestClient {
|
|||
blockingStub.withDeadlineAfter(1, TimeUnit.MINUTES).unaryCall(request);
|
||||
logger.info("Received response");
|
||||
String serverId = response.getServerId();
|
||||
checkNotNull(serverId, "serverId is null");
|
||||
if (lastServerId != null && !lastServerId.equals(serverId)) {
|
||||
String msg = "Expected serverId " + lastServerId + ", but got " + serverId;
|
||||
logger.warning(msg + ". affinityBreakageBudget=" + affinityBreakageBudget);
|
||||
|
|
|
|||
Loading…
Reference in New Issue