Skip to content

Commit 2f86949

Browse files
committed
Update tests with master test framework changes
1 parent d70d7ee commit 2f86949

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/grpc-js-xds/test/test-nack.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import * as assert from 'assert';
1919
import { register } from "../src";
2020
import { Backend } from "./backend";
2121
import { XdsTestClient } from "./client";
22-
import { FakeCluster, FakeRouteGroup } from "./framework";
22+
import { FakeEdsCluster, FakeRouteGroup } from "./framework";
2323
import { XdsServer } from "./xds-server";
2424

2525
register();
@@ -38,7 +38,7 @@ describe('Validation errors', () => {
3838
xdsServer?.shutdownServer();
3939
});
4040
it('Should continue to use a valid resource after receiving an invalid EDS update', done => {
41-
const cluster = new FakeCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
41+
const cluster = new FakeEdsCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
4242
const routeGroup = new FakeRouteGroup('route1', [{cluster: cluster}]);
4343
routeGroup.startAllBackends().then(() => {
4444
xdsServer.setEdsResource(cluster.getEndpointConfig());
@@ -68,7 +68,7 @@ describe('Validation errors', () => {
6868
}, reason => done(reason));
6969
});
7070
it('Should continue to use a valid resource after receiving an invalid CDS update', done => {
71-
const cluster = new FakeCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
71+
const cluster = new FakeEdsCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
7272
const routeGroup = new FakeRouteGroup('route1', [{cluster: cluster}]);
7373
routeGroup.startAllBackends().then(() => {
7474
xdsServer.setEdsResource(cluster.getEndpointConfig());
@@ -98,7 +98,7 @@ describe('Validation errors', () => {
9898
}, reason => done(reason));
9999
});
100100
it('Should continue to use a valid resource after receiving an invalid RDS update', done => {
101-
const cluster = new FakeCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
101+
const cluster = new FakeEdsCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
102102
const routeGroup = new FakeRouteGroup('route1', [{cluster: cluster}]);
103103
routeGroup.startAllBackends().then(() => {
104104
xdsServer.setEdsResource(cluster.getEndpointConfig());
@@ -128,7 +128,7 @@ describe('Validation errors', () => {
128128
}, reason => done(reason));
129129
});
130130
it('Should continue to use a valid resource after receiving an invalid LDS update', done => {
131-
const cluster = new FakeCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
131+
const cluster = new FakeEdsCluster('cluster1', [{backends: [new Backend()], locality: {region: 'region1'}}]);
132132
const routeGroup = new FakeRouteGroup('route1', [{cluster: cluster}]);
133133
routeGroup.startAllBackends().then(() => {
134134
xdsServer.setEdsResource(cluster.getEndpointConfig());

0 commit comments

Comments
 (0)