[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Proc unit tests didn't reflect protocol addition



commit 7c0002d40db176d02c6a57e400ec53b5fb7a63a4
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Mon Sep 23 00:28:01 2013 -0700

    Proc unit tests didn't reflect protocol addition
    
    Oops, our unit tests didn't account for proc now providing the protocol. Caught
    by our jenkins tests.
---
 test/unit/util/proc.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unit/util/proc.py b/test/unit/util/proc.py
index 4ee598b..caf9d7a 100644
--- a/test/unit/util/proc.py
+++ b/test/unit/util/proc.py
@@ -172,8 +172,8 @@ class TestProc(unittest.TestCase):
     self.assertEquals([], proc.get_connections(0))
 
     expected_results = [
-      ('17.17.17.17', 4369, '34.34.34.34', 8738),
-      ('187.187.187.187', 48059, '204.204.204.204', 52428),
+      ('17.17.17.17', 4369, '34.34.34.34', 8738, 'tcp'),
+      ('187.187.187.187', 48059, '204.204.204.204', 52428, 'udp'),
     ]
 
     self.assertEquals(expected_results, proc.get_connections(pid))

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits