Skip to content

Commit 2ba9fd9

Browse files
committed
fix tests.
1 parent faa3dc0 commit 2ba9fd9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

xds/src/test/java/io/grpc/xds/XdsDependencyManagerTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@
105105
@RunWith(JUnit4.class)
106106
public class XdsDependencyManagerTest {
107107
private static final Logger log = Logger.getLogger(XdsDependencyManagerTest.class.getName());
108-
public static final String CLUSTER_TYPE_NAME = XdsClusterResource.getInstance().typeName();
109-
public static final String ENDPOINT_TYPE_NAME = XdsEndpointResource.getInstance().typeName();
110108

111109
private final SynchronizationContext syncContext =
112110
new SynchronizationContext((t, e) -> {

xds/src/test/java/io/grpc/xds/XdsTestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public boolean ignoreResourceDeletion() {
105105

106106
@Override
107107
public boolean isTrustedXdsServer() {
108-
return false;
108+
return true;
109109
}
110110

111111
@Override
@@ -295,7 +295,7 @@ static XdsConfig getDefaultXdsConfig(String serverHostName)
295295
XdsEndpointResource.EdsUpdate edsUpdate = new XdsEndpointResource.EdsUpdate(
296296
EDS_NAME, lbEndpointsMap, Collections.emptyList());
297297
XdsClusterResource.CdsUpdate cdsUpdate = XdsClusterResource.CdsUpdate.forEds(
298-
CLUSTER_NAME, EDS_NAME, EMPTY_BOOTSTRAPPER_SERVER_INFO, null, null, null, false, null)
298+
CLUSTER_NAME, EDS_NAME, null, null, null, null, false, null)
299299
.lbPolicyConfig(getWrrLbConfigAsMap()).build();
300300
XdsConfig.XdsClusterConfig clusterConfig = new XdsConfig.XdsClusterConfig(
301301
CLUSTER_NAME, cdsUpdate, new EndpointConfig(StatusOr.fromValue(edsUpdate)));

0 commit comments

Comments
 (0)