Skip to content

Commit

Permalink
Fix broken test --ECL
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Sep 12, 2023
1 parent a7eb53c commit cfc6b6a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Corpus>());
Expand Down Expand Up @@ -137,7 +137,9 @@ public TestEnvironment()
Id = "engine1",
EngineId = "engine1",
SourceLanguage = "es",
TargetLanguage = "en"
TargetLanguage = "en",
BuildRevision = 1,
BuildState = BuildState.None,
}
);
TrainSegmentPairs = new MemoryRepository<TrainSegmentPair>();
Expand Down

0 comments on commit cfc6b6a

Please sign in to comment.