Skip to content

Commit 4e8c56b

Browse files
fix: relax condition of translate assertion (#740)
1 parent 3466509 commit 4e8c56b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aws-predictions/src/androidTest/java/com/amplifyframework/predictions/aws/AWSPredictionsTranslateTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
3232
import static org.junit.Assert.assertEquals;
3333
import static org.junit.Assert.assertNotNull;
34+
import static org.junit.Assert.assertTrue;
3435

3536
/**
3637
* Tests that Predictions translate delivers a non-null result
@@ -87,7 +88,7 @@ public void testTranslationWithDefaultLanguage() throws Exception {
8788

8889
// Assert translation
8990
String translation = result.getTranslatedText();
90-
assertEquals(Hola mundo!", translation);
91+
assertTrue(translation.contains("Hola mundo"));
9192
}
9293

9394
/**

0 commit comments

Comments
 (0)