Tests: Temporarily mitigate discrepancy between Ant and Gradle in SingleFileNamingServiceTest

This commit is contained in:
str4d
2019-08-10 16:48:21 +00:00
parent ee84e7e3e1
commit f32c863ba8
2 changed files with 10 additions and 2 deletions

View File

@ -58,8 +58,14 @@ public class SingleFileNamingServiceTest extends TestCase {
ns.remove("test.i2p"); ns.remove("test.i2p");
assertThat(ns.lookup("test.i2p"), is(nullValue())); assertThat(ns.lookup("test.i2p"), is(nullValue()));
assertThat(ns.reverseLookup(testDest2), is(nullValue())); assertThat(ns.reverseLookup(testDest2), is(nullValue()));
// Odd quirk - the above lookups don't update size, but getEntries() does... // Odd quirk:
assertThat(ns.size(), is(equalTo(1))); // - 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.getEntries(), is(equalTo(Collections.EMPTY_MAP)));
assertThat(ns.size(), is(equalTo(0))); assertThat(ns.size(), is(equalTo(0)));
} }

View File

@ -3,6 +3,8 @@
* Jetty: Fix Gradle build * Jetty: Fix Gradle build
* Tests: * Tests:
- Fix compilation bug after SSU HMAC implementation move - Fix compilation bug after SSU HMAC implementation move
- Temporarily mitigate discrepancy between Ant and Gradle in
SingleFileNamingServiceTest
2019-08-05 zzz 2019-08-05 zzz
* i2ptunnel: * i2ptunnel: