From 25e5bca03bed41f72b4c73e460bce138e723c7d8 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Wed, 3 Dec 2014 18:18:52 -0500 Subject: [PATCH] Race in test_round_trip_time. --- test/test_topology.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_topology.py b/test/test_topology.py index ea1ab921f..4333741bd 100644 --- a/test/test_topology.py +++ b/test/test_topology.py @@ -265,7 +265,9 @@ class TestSingleServerTopology(TopologyTest): def test(): t.request_check_all() # We didn't forget prior average: .8 * 105 + .2 * 20 = 88. - return round(abs(88 - s.description.round_trip_time), 7) == 0 + description = s.description + return (description.round_trip_time is not None + and round(abs(88 - description.round_trip_time), 7) == 0) wait_until(test, 'calculate correct new average')