diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-02-14 06:10:58 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-02-14 06:10:58 +0100 |
commit | 968da6e38ad4fd646c72324f1f9137556b2db477 (patch) | |
tree | acca3a75aec36478d467a97f3b54bdc8f504acb9 /tests/src/cgeo | |
parent | 9e9a4c06c022dc5562d41bfc9d4067427a33fda2 (diff) | |
download | cgeo-968da6e38ad4fd646c72324f1f9137556b2db477.zip cgeo-968da6e38ad4fd646c72324f1f9137556b2db477.tar.gz cgeo-968da6e38ad4fd646c72324f1f9137556b2db477.tar.bz2 |
refactoring: make search by coords test more fault tolerant
* some caches were archived, therefore count decreased
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r-- | tests/src/cgeo/geocaching/cgeoApplicationTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java index cc9e66f..c48a6ae 100644 --- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java +++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java @@ -162,7 +162,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { public static void testSearchByCoords() { final SearchResult search = cgBase.searchByCoords(null, new Geopoint("N 52° 24.972 E 009° 35.647"), CacheType.MYSTERY, 0, false); assertNotNull(search); - assertEquals(20, search.getGeocodes().size()); + assertTrue(18 <= search.getGeocodes().size()); assertTrue(search.getGeocodes().contains("GC1RMM2")); } |