diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-24 23:21:49 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-24 23:21:49 +0200 |
| commit | 4ca91a45a1a957851ab9542e88d79edfd632c631 (patch) | |
| tree | 8f17f260cca222a0f538e8122a866745ead31f77 /tests | |
| parent | 62867d2865b232aefbdfe142c1696ce0f02037c4 (diff) | |
| download | cgeo-4ca91a45a1a957851ab9542e88d79edfd632c631.zip cgeo-4ca91a45a1a957851ab9542e88d79edfd632c631.tar.gz cgeo-4ca91a45a1a957851ab9542e88d79edfd632c631.tar.bz2 | |
Fix bug introduced for all but one testers
It looks like the personal note below has been added onto the blafoo
gc.com account. The change in 62867d2865b232aefbdfe142c1696ce0f02037c4
fails for all other testers, which don't have the same note in their
accounts.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/cgeo/test/Compare.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/test/Compare.java b/tests/src/cgeo/test/Compare.java index 3fdb868..93eef99 100644 --- a/tests/src/cgeo/test/Compare.java +++ b/tests/src/cgeo/test/Compare.java @@ -34,7 +34,6 @@ public abstract class Compare { assertEquals(expected.getShortDescription(), actual.getShortDescription()); assertEquals(expected.getCacheId(), actual.getCacheId()); assertEquals(expected.getLocation(), actual.getLocation()); - assertEquals(expected.getPersonalNote(), actual.getPersonalNote()); assertEquals(expected.isFound(), actual.isFound()); assertEquals(expected.isFavorite(), actual.isFavorite()); assertEquals(expected.isWatchlist(), actual.isWatchlist()); @@ -46,7 +45,8 @@ public abstract class Compare { assertTrue(actual.getLogCounts().get(logType).intValue() >= expected.getLogCounts().get(logType).intValue()); } - // the inventory can differ to often, therefore we don't compare them + // The inventories can differ too often, therefore we don't compare them. Also, the personal note + // cannot be expected to match with different tester accounts. int actualSpoilersSize = null != actual.getSpoilers() ? actual.getSpoilers().size() : 0; int expectedSpoilersSize = null != expected.getSpoilers() ? expected.getSpoilers().size() : 0; |
