diff --git a/core/java/test/junit/net/i2p/client/naming/SingleFileNamingServiceTest.java b/core/java/test/junit/net/i2p/client/naming/SingleFileNamingServiceTest.java index e8466da11a..9d4dcbf9ec 100644 --- a/core/java/test/junit/net/i2p/client/naming/SingleFileNamingServiceTest.java +++ b/core/java/test/junit/net/i2p/client/naming/SingleFileNamingServiceTest.java @@ -58,8 +58,14 @@ public class SingleFileNamingServiceTest extends TestCase { ns.remove("test.i2p"); assertThat(ns.lookup("test.i2p"), is(nullValue())); assertThat(ns.reverseLookup(testDest2), is(nullValue())); - // Odd quirk - the above lookups don't update size, but getEntries() does... - assertThat(ns.size(), is(equalTo(1))); + // Odd quirk: + // - When running this test with Ant, the above lookups don't update + // size, but getEntries() does. + // - When running this test with Gradle, the above lookups correctly + // update size. + // So we can't enforce it either way until we know why. + // TODO: Figure out the discrepancy here. + //assertThat(ns.size(), is(equalTo(1))); assertThat(ns.getEntries(), is(equalTo(Collections.EMPTY_MAP))); assertThat(ns.size(), is(equalTo(0))); } diff --git a/history.txt b/history.txt index 9e5cf48666..2b9a929bf2 100644 --- a/history.txt +++ b/history.txt @@ -3,6 +3,8 @@ * Jetty: Fix Gradle build * Tests: - Fix compilation bug after SSU HMAC implementation move + - Temporarily mitigate discrepancy between Ant and Gradle in + SingleFileNamingServiceTest 2019-08-05 zzz * i2ptunnel: