commit 88535e1f37ef47c2db61b2e6e0f0b0ab633d0a99 Author: Karsten Loesing karsten.loesing@gmx.net Date: Wed Nov 14 17:05:18 2018 +0100
Fix ipv6servers unit tests. --- .../metrics/stats/ipv6servers/Ipv6NetworkStatusTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/torproject/metrics/stats/ipv6servers/Ipv6NetworkStatusTest.java b/src/test/java/org/torproject/metrics/stats/ipv6servers/Ipv6NetworkStatusTest.java index aaadcbf..2f3ca42 100644 --- a/src/test/java/org/torproject/metrics/stats/ipv6servers/Ipv6NetworkStatusTest.java +++ b/src/test/java/org/torproject/metrics/stats/ipv6servers/Ipv6NetworkStatusTest.java @@ -122,8 +122,11 @@ public class Ipv6NetworkStatusTest { for (Ipv6NetworkStatus.Entry parsedEntry : parsedNetworkStatus.entries) { if (this.digest.equals(parsedEntry.digest)) { - assertEquals(this.description, this.guard, parsedEntry.guard); - assertEquals(this.description, this.exit, parsedEntry.exit); + assertEquals(this.description, this.guard, + parsedEntry.flags.contains("Guard")); + assertEquals(this.description, this.exit, + parsedEntry.flags.contains("Exit") + && !parsedEntry.flags.contains("BadExit")); assertEquals(this.description, this.reachable, parsedEntry.reachable); foundEntry = true;