Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Dec 18, 2024
1 parent 780c79b commit 15bb7c3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public async Task DeleteEngineByIdAsync(IEnumerable<string> scope, int expectedS
)]
[TestCase(new[] { Scopes.ReadWordAlignmentEngines, Scopes.UpdateWordAlignmentEngines }, 409, ECHO_ENGINE1_ID)]
[TestCase(new[] { Scopes.ReadFiles }, 403, ECHO_ENGINE1_ID)] //Arbitrary unrelated privilege
public async Task TranslateSegmentWithEngineByIdAsync(
public async Task GetWordAlignmentForSegmentPairWithEngineByIdAsync(
IEnumerable<string> scope,
int expectedStatusCode,
string engineId
Expand All @@ -350,8 +350,7 @@ await _env.Builds.InsertAsync(
);
Client.WordAlignmentResult result = await client.GetWordAlignmentAsync(
engineId,
new WordAlignmentRequest { SourceSegment = "This is a test.", TargetSegment = "This is a test." },
Arg.Any<CancellationToken>()
new WordAlignmentRequest { SourceSegment = "This is a test.", TargetSegment = "This is a test." }
);
Assert.That(result.SourceTokens, Is.EqualTo("This is a test .".Split()));
Assert.That(result.TargetTokens, Is.EqualTo("This is a test .".Split()));
Expand Down

0 comments on commit 15bb7c3

Please sign in to comment.