From 83c3c66a9b207b1d68a52b5975517384d89db91a Mon Sep 17 00:00:00 2001 From: Glenn Harper <64209257+glharper@users.noreply.github.com> Date: Wed, 2 Aug 2023 20:12:06 -0400 Subject: [PATCH] Disable impacted translation tests (#707) --- tests/TranslationRecognizerBasicsTests.ts | 24 +++++++++++++++-------- tests/TranslationSynthTests.ts | 3 ++- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/tests/TranslationRecognizerBasicsTests.ts b/tests/TranslationRecognizerBasicsTests.ts index d49ad85..918fe25 100644 --- a/tests/TranslationRecognizerBasicsTests.ts +++ b/tests/TranslationRecognizerBasicsTests.ts @@ -152,7 +152,8 @@ describe.each([false])("Service based tests", (forceNodeWebSocket: boolean) => { ServiceRecognizerBase.telemetryData = undefined; }); - test("RecognizeOnceAsync1", (done: jest.DoneCallback) => { + // TODO: fix and re-enable (Translation service change) + test.skip("RecognizeOnceAsync1", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: RecognizeOnceAsync1"); const s: sdk.SpeechTranslationConfig = sdk.SpeechTranslationConfig.fromSubscription(Settings.SpeechSubscriptionKey, Settings.SpeechRegion); @@ -440,8 +441,9 @@ describe.each([false])("Service based tests", (forceNodeWebSocket: boolean) => { r.stopContinuousRecognitionAsync(() => done(), (error: string) => done(error)); }); }); - - test("InitialSilenceTimeout (pull)", (done: jest.DoneCallback) => { + + // TODO: fix and re-enable (Translation service change) + test.skip("InitialSilenceTimeout (pull)", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: InitialSilenceTimeout (pull)"); let p: sdk.PullAudioInputStream; @@ -472,7 +474,8 @@ describe.each([false])("Service based tests", (forceNodeWebSocket: boolean) => { }); }, 20000); - test("InitialSilenceTimeout (push)", (done: jest.DoneCallback) => { + // TODO: fix and re-enable (Translation service change) + test.skip("InitialSilenceTimeout (push)", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: InitialSilenceTimeout (push)"); const p: sdk.PushAudioInputStream = sdk.AudioInputStream.createPushStream(); @@ -485,7 +488,9 @@ describe.each([false])("Service based tests", (forceNodeWebSocket: boolean) => { testInitialSilenceTimeout(config, done); }, 15000); - Settings.testIfDOMCondition("InitialSilenceTimeout (File)", (done: jest.DoneCallback) => { + // TODO: fix and re-enable (Translation service change) + // Settings.testIfDOMCondition("InitialSilenceTimeout (File)", (done: jest.DoneCallback) => { + test.skip("InitialSilenceTimeout (File)", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: InitialSilenceTimeout (File)"); const audioFormat: AudioStreamFormatImpl = sdk.AudioStreamFormat.getDefaultInputFormat() as AudioStreamFormatImpl; @@ -729,7 +734,8 @@ describe.each([false])("Service based tests", (forceNodeWebSocket: boolean) => { }); }, 15000); - test("Silence After Speech", (done: jest.DoneCallback) => { + // TODO: fix and re-enable (Translation service change) + test.skip("Silence After Speech", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: Silence After Speech"); // Pump valid speech and then silence until at least one speech end cycle hits. @@ -813,7 +819,8 @@ describe.each([false])("Service based tests", (forceNodeWebSocket: boolean) => { }); }, 35000); - test("Silence Then Speech", (done: jest.DoneCallback) => { + // TODO: fix and re-enable (Translation service change) + test.skip("Silence Then Speech", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: Silence Then Speech"); // Pump valid speech and then silence until at least one speech end cycle hits. @@ -906,7 +913,8 @@ describe.each([false])("Service based tests", (forceNodeWebSocket: boolean) => { }, 35000); }); -test("Multiple Phrase Latency Reporting", (done: jest.DoneCallback) => { +// TODO: fix and re-enable (Translation service change) +test.skip("Multiple Phrase Latency Reporting", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: Multiple Phrase Latency Reporting"); diff --git a/tests/TranslationSynthTests.ts b/tests/TranslationSynthTests.ts index f61c0c5..374d40f 100644 --- a/tests/TranslationSynthTests.ts +++ b/tests/TranslationSynthTests.ts @@ -360,7 +360,8 @@ test("TranslateVoiceUSToGerman", (done: jest.DoneCallback) => { }); }, 10000); -test("MultiPhrase", (done: jest.DoneCallback) => { +// TODO: fix and re-enable (Translation service change) +test.skip("MultiPhrase", (done: jest.DoneCallback) => { // eslint-disable-next-line no-console console.info("Name: MultiPhrase"); const s: sdk.SpeechTranslationConfig = BuildSpeechConfig();