From cfc6b6a2320b509983089bfbe772f5f61219e7ec Mon Sep 17 00:00:00 2001 From: Enkidu93 Date: Tue, 12 Sep 2023 10:17:00 -0400 Subject: [PATCH] Fix broken test --ECL --- .../Services/SmtTransferEngineServiceTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/SIL.Machine.AspNetCore.Tests/Services/SmtTransferEngineServiceTests.cs b/tests/SIL.Machine.AspNetCore.Tests/Services/SmtTransferEngineServiceTests.cs index e2a712b4d..a48cdcec7 100644 --- a/tests/SIL.Machine.AspNetCore.Tests/Services/SmtTransferEngineServiceTests.cs +++ b/tests/SIL.Machine.AspNetCore.Tests/Services/SmtTransferEngineServiceTests.cs @@ -10,7 +10,7 @@ public async Task StartBuildAsync() { using var env = new TestEnvironment(); TranslationEngine engine = env.Engines.Get("engine1"); - Assert.That(engine.BuildRevision, Is.EqualTo(0)); + Assert.That(engine.BuildRevision, Is.EqualTo(1)); //For testing purposes BuildRevision is set to 1 (i.e., an already built engine) // ensure that the SMT model was loaded before training await env.Service.TranslateAsync("engine1", n: 1, "esto es una prueba."); await env.Service.StartBuildAsync("engine1", "build1", Array.Empty()); @@ -137,7 +137,9 @@ public TestEnvironment() Id = "engine1", EngineId = "engine1", SourceLanguage = "es", - TargetLanguage = "en" + TargetLanguage = "en", + BuildRevision = 1, + BuildState = BuildState.None, } ); TrainSegmentPairs = new MemoryRepository();