diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
index 91401970a393791502e3ac51a1fb008a35b5e9fd..d27a7a90351c7f73d85b58c06fae42534d703c9c 100644
--- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java
+++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
@@ -179,7 +179,7 @@ public class InputLogicTests extends InputTestsBase {
 
     public void testCancelDoubleSpace() {
         final String STRING_TO_TYPE = "this  ";
-        final String EXPECTED_RESULT = "this  ";
+        final String EXPECTED_RESULT = "this ";
         type(STRING_TO_TYPE);
         type(Constants.CODE_DELETE);
         assertEquals("double space make a period", EXPECTED_RESULT, mEditText.getText().toString());