Skip to content

Commit

Permalink
fix: unit test break in TranslatorSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
memoryz committed Oct 27, 2023
1 parent 7230ce4 commit cefd964
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TranslateSuite extends TransformerFuzzing[Translate]
.setOutputCol("translation")
.setConcurrency(5)
val result3 = getTranslationTextResult(translate1.setToLanguage("zh-Hans"), emptyDf).collect()
assert(result3(0).getSeq(0).mkString("\n") == "嗨,这是突触")
assert(result3(0).getSeq(0).mkString("\n") == "嗨,我是Synapse")

val translate2: Translate = new Translate()
.setSubscriptionKey(translatorKey)
Expand All @@ -82,7 +82,7 @@ class TranslateSuite extends TransformerFuzzing[Translate]
.setOutputCol("translation")
.setConcurrency(5)
val result4 = getTranslationTextResult(translate2, textDf6).collect()
assert(result4(0).getSeq(0).mkString("") == "嗨,这是突触")
assert(result4(0).getSeq(0).mkString("") == "嗨,我是Synapse")
assert(result4(1).get(0) == null)
assert(result4(2).get(0) == null)
}
Expand Down

0 comments on commit cefd964

Please sign in to comment.