diff --git a/tests/Serval.E2ETests/MissingServicesTests.cs b/tests/Serval.E2ETests/MissingServicesTests.cs index 3d66c50f..98f4abca 100644 --- a/tests/Serval.E2ETests/MissingServicesTests.cs +++ b/tests/Serval.E2ETests/MissingServicesTests.cs @@ -110,6 +110,26 @@ public void UseMissingEngineServerAsync() Assert.That(ex!.StatusCode, Is.EqualTo(503)); } + [Test] + [Category("MultiSegmentUpload")] + [Category("ParatextProject")] + public async Task NmtLargeBatch() + { + await _helperClient!.ClearEngines(); + string engineId = await _helperClient.CreateNewEngine("Nmt", "es", "en", "NMT3"); + var books = new string[] { "bible_LARGEFILE.txt" }; + await _helperClient.AddTextCorpusToEngine(engineId, books, "es", "en", false); + var cId = await _helperClient.AddTextCorpusToEngine(engineId, new string[] { "3JN.txt" }, "es", "en", true); + await _helperClient.BuildEngine(engineId); + await Task.Delay(1000); + IList lTrans = await _helperClient.translationEnginesClient.GetAllPretranslationsAsync( + engineId, + cId + ); + TestContext.WriteLine(lTrans[0].Translation); + Assert.IsTrue(lTrans[0].Translation.Contains("beloved")); + } + [TearDown] public void TearDown() { } } diff --git a/tests/Serval.E2ETests/ServalApiTests.cs b/tests/Serval.E2ETests/ServalApiTests.cs index 1ba907d5..2e63e9a3 100644 --- a/tests/Serval.E2ETests/ServalApiTests.cs +++ b/tests/Serval.E2ETests/ServalApiTests.cs @@ -133,24 +133,6 @@ public async Task NmtBatch() Assert.IsTrue(lTrans[0].Translation.Contains("dearly beloved Gaius")); } - [Test] - public async Task NmtLargeBatch() - { - await _helperClient!.ClearEngines(); - string engineId = await _helperClient.CreateNewEngine("Nmt", "es", "en", "NMT3"); - var books = new string[] { "bible_LARGEFILE.txt" }; - await _helperClient.AddTextCorpusToEngine(engineId, books, "es", "en", false); - var cId = await _helperClient.AddTextCorpusToEngine(engineId, new string[] { "3JN.txt" }, "es", "en", true); - await _helperClient.BuildEngine(engineId); - await Task.Delay(1000); - IList lTrans = await _helperClient.translationEnginesClient.GetAllPretranslationsAsync( - engineId, - cId - ); - TestContext.WriteLine(lTrans[0].Translation); - Assert.IsTrue(lTrans[0].Translation.Contains("beloved")); - } - [Test] public async Task GetNmtCancelAndRestartBuild() {