Skip to content

Commit

Permalink
test(metrics): revert jest changes for metrics and mercury plugins (w…
Browse files Browse the repository at this point in the history
…ebex#3547)

Co-authored-by: Shreyas Sharma <[email protected]>
  • Loading branch information
Shreyas281299 and ShreyasSharma28 committed Apr 22, 2024
1 parent d763cb2 commit c2aab31
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ describe('plugin-metrics', () => {
webex.internal.newMetrics.callDiagnosticLatencies.getDiffBetweenTimestamps = sinon
.stub()
.returns(10);
webex.internal.newMetrics.callDiagnosticLatencies.getU2CTime = sinon
.stub()
.returns(20);
webex.internal.newMetrics.callDiagnosticLatencies.getU2CTime = sinon.stub().returns(20);
const promise = webex.internal.newMetrics.callDiagnosticMetrics.submitToCallDiagnostics(
//@ts-ignore
{event: {name: 'client.call.initiated'}}
Expand All @@ -154,7 +152,7 @@ describe('plugin-metrics', () => {
meetingInfoReqResp: 10,
registerWDMDeviceJMT: 10,
showInterstitialTime: 10,
getU2CTime: 20
getU2CTime: 20,
},
});
assert.lengthOf(
Expand All @@ -175,7 +173,7 @@ describe('plugin-metrics', () => {
webex.internal.newMetrics.callDiagnosticLatencies.getCallInitJoinReq = sinon
.stub()
.returns(10);
webex.internal.newMetrics.callDiagnosticLatencies.getDownloadTimeJMT = sinon
webex.internal.newMetrics.callDiagnosticLatencies.getDownloadTimeJMT = sinon
.stub()
.returns(100);
const promise = webex.internal.newMetrics.callDiagnosticMetrics.submitToCallDiagnostics(
Expand Down Expand Up @@ -361,7 +359,6 @@ describe('plugin-metrics', () => {
});
});

//TODO: The following two skipped tests are failling when run using jest, needs investigation: https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-485382
describe('when the request fails', () => {
it('does not clear the queue', async () => {
// avoid setting .sent timestamp
Expand Down

0 comments on commit c2aab31

Please sign in to comment.