Merge "Quit using try catch in addAndWriteRandomWords."
This commit is contained in:
commit
230b343e8c
1 changed files with 3 additions and 7 deletions
|
@ -213,13 +213,9 @@ public class UserHistoryDictionaryTests extends AndroidTestCase {
|
|||
|
||||
final int numberOfWords = 1000;
|
||||
final Random random = new Random(123456);
|
||||
|
||||
try {
|
||||
clearHistory(dict);
|
||||
addAndWriteRandomWords(dict, numberOfWords, random, true /* checksContents */);
|
||||
} finally {
|
||||
checkExistenceAndRemoveDictFile(dict, dictFile);
|
||||
}
|
||||
clearHistory(dict);
|
||||
addAndWriteRandomWords(dict, numberOfWords, random, true /* checksContents */);
|
||||
checkExistenceAndRemoveDictFile(dict, dictFile);
|
||||
}
|
||||
|
||||
public void testStressTestForSwitchingLanguagesAndAddingWords() {
|
||||
|
|
Loading…
Reference in a new issue