grpc-js-xds: interop: Fix timestamp handling when config changes

This commit is contained in:
Michael Lumish 2022-11-14 09:50:33 -08:00
parent e066a5a97b
commit f8f95ee9bb

View File

@ -345,7 +345,7 @@ function makeSingleRequest(client: TestServiceClient, type: CallType, failOnFail
function sendConstantQps(client: TestServiceClient, qps: number, failOnFailedRpcs: boolean, callStatsTracker: CallStatsTracker) {
const callStartTimestampsTrackers: {[callType: string]: RecentTimestampList} = {};
for (const callType of currentConfig.callTypes) {
for (const callType of ['EmptyCall', 'UnaryCall']) {
callStartTimestampsTrackers[callType] = new RecentTimestampList(qps);
}
setInterval(() => {