[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Fix ipv6servers unit tests.
commit 88535e1f37ef47c2db61b2e6e0f0b0ab633d0a99
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits