Skip to content

Commit

Permalink
analyze results ordering to match tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pierky committed Feb 12, 2016
1 parent b727432 commit a549474
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pierky/ripeatlasmonitor/Monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ def no_normalize_key(k):
if not normalize_key:
normalize_key = no_normalize_key

src_list = parsed_results[prop]
src_list = sorted(parsed_results[prop])

key_cnt_dict = {
normalize_key(e):
Expand Down
9 changes: 4 additions & 5 deletions tests/analyze_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ def test_ping_msm(self):
34.26 ms
29.61 ms
14.32 ms
37.42 ms
14.32 ms
29.61 ms
30.51 ms
Expand All @@ -133,11 +133,11 @@ def test_ssl_msm(self):
38.229.72.16: 2 times
204.194.238.143: 1 time
38.229.72.14: 1 time
86.59.30.40: 1 time
38.229.72.14: 1 time
204.194.238.143: 1 time
67.215.65.130: 1 time
Expand All @@ -148,7 +148,6 @@ def test_ssl_msm(self):
6D:5B:C9:79:46:1C:72:64:E1:71:00:10:CD:7D:4E:A3:EC:57:FA:11:21:5F:04:FF:A5:16:AE:61:95:9A:B2:B2,
BE:9E:83:54:86:12:70:4C:E3:18:7F:E4:53:F8:73:B2:05:B3:9D:7B:4E:7C:19:A9:05:27:B7:4E:05:F3:9E:5F: 2 times"""

self.equal(r, exp_r)

def test_dns_msm(self):
Expand Down

0 comments on commit a549474

Please sign in to comment.