Fix: BinaryDictionaryDecayingTests.

Change-Id: I3b415463bb23d1ad58ece62ba271412d66210a9c
main
Keisuke Kuroyanagi 2013-11-20 19:16:16 +09:00
parent 7a52b4e289
commit d3a4383299
1 changed files with 2 additions and 0 deletions

View File

@ -225,6 +225,7 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase {
Integer.parseInt(binaryDictionary.getPropertyForTests(
BinaryDictionary.UNIGRAM_COUNT_QUERY));
while (binaryDictionary.needsToRunGC(true /* mindsBlockByGC */)) {
binaryDictionary.getPropertyForTests(SET_NEEDS_TO_DECAY_FOR_TESTING_KEY);
binaryDictionary.flushWithGC();
}
final int unigramCountAfterGC =
@ -291,6 +292,7 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase {
Integer.parseInt(binaryDictionary.getPropertyForTests(
BinaryDictionary.BIGRAM_COUNT_QUERY));
while (binaryDictionary.needsToRunGC(true /* mindsBlockByGC */)) {
binaryDictionary.getPropertyForTests(SET_NEEDS_TO_DECAY_FOR_TESTING_KEY);
binaryDictionary.flushWithGC();
}
final int bigramCountAfterGC =