Skip to content

Commit

Permalink
Change exception in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Dec 12, 2024
1 parent c62fed8 commit 74eb455
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void RunAsync_UnknownLanguageTagsNoData()
using TestEnvironment env = new();
ParallelCorpus corpus1 = TestEnvironment.TextFileCorpus(sourceLanguage: "xxx", targetLanguage: "zzz");

Assert.ThrowsAsync<InvalidOperationException>(async () =>
Assert.ThrowsAsync<OperationCanceledException>(async () =>
{
await env.RunBuildJobAsync(corpus1, engineId: "engine2");
});
Expand Down

0 comments on commit 74eb455

Please sign in to comment.