test: relax test_rpc_timing on Windows.

This commit is contained in:
whitequark 2017-03-17 11:19:50 +00:00
parent 7dc7dcda2c
commit e9cf451c0b
1 changed files with 4 additions and 1 deletions

View File

@ -455,6 +455,9 @@ class RPCTest(ExperimentCase):
rpc_time_mean = self.dataset_mgr.get("rpc_time_mean") rpc_time_mean = self.dataset_mgr.get("rpc_time_mean")
print(rpc_time_mean) print(rpc_time_mean)
self.assertGreater(rpc_time_mean, 100*ns) self.assertGreater(rpc_time_mean, 100*ns)
if os.name == 'nt':
self.assertLess(rpc_time_mean, 4*ms)
else:
self.assertLess(rpc_time_mean, 2*ms) self.assertLess(rpc_time_mean, 2*ms)
self.assertLess(self.dataset_mgr.get("rpc_time_stddev"), 1*ms) self.assertLess(self.dataset_mgr.get("rpc_time_stddev"), 1*ms)