Skip to content

Commit 2b636c2

Browse files
committed
fix test case
1 parent c8fa46c commit 2b636c2

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

xds/src/test/java/io/grpc/xds/client/ControlPlaneClientTestBase.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
import java.util.Map;
2020

2121
public abstract class ControlPlaneClientTestBase {
22-
protected static String getNonceForResourceType(XdsClientImpl xdsClient, Bootstrapper.ServerInfo serverInfo, XdsResourceType<?> type) {
23-
ControlPlaneClient controlPlaneClient = xdsClient.serverCpClientMap.get(serverInfo);
24-
Map<XdsResourceType<?>, String> nonceMap = controlPlaneClient.getNonce();
25-
if (nonceMap == null) {
26-
return null;
27-
}
28-
return nonceMap.get(type);
22+
protected static String getNonceForResourceType(XdsClientImpl xdsClient,
23+
Bootstrapper.ServerInfo serverInfo,
24+
XdsResourceType<?> type) {
25+
ControlPlaneClient controlPlaneClient = xdsClient.serverCpClientMap.get(serverInfo);
26+
Map<XdsResourceType<?>, String> nonceMap = controlPlaneClient.getNonce();
27+
if (nonceMap == null) {
28+
return null;
2929
}
30+
return nonceMap.get(type);
31+
}
3032
}

0 commit comments

Comments
 (0)