Selaa lähdekoodia

Make the relay.py unit test more robust to WOMode

Ian Goldberg 4 vuotta sitten
vanhempi
commit
b86ee4c06d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      relay.py

+ 2 - 2
relay.py

@@ -828,8 +828,8 @@ if __name__ == '__main__':
     peerchannel.new_circuit_with_circid(circid)
     relays[3].channelmgr.send_cell(circid, StringCell("test"), relays[5].netaddr)
 
-    idpubkey = dirauth.DirAuth.consensus.consdict["relays"][1].descdict["idkey"]
-    onionpubkey = dirauth.DirAuth.consensus.consdict["relays"][1].descdict["onionkey"]
+    idpubkey = relays[1].idkey.verify_key
+    onionpubkey = relays[1].onionkey.public_key
     nt = NTor(perfstats)
     req = nt.request()
     R, S = NTor.reply(relays[1].onionkey, idpubkey, req, perfstats)