Skip to content
Snippets Groups Projects
Commit 2c54bebc authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Rename goal_time to sample_time and move params to class variables

In asv development version goal_time is now sample_time:
https://github.com/airspeed-velocity/asv/pull/575
parent d2d2c44a
No related branches found
No related tags found
No related merge requests found
......@@ -47,12 +47,8 @@
class TimeTestSuite(BaseTimeTestSuite):
def __init__(self):
super(TimeTestSuite, self).__init__()
self.timer = timeit.default_timer
self.goal_time = 10
timer = timeit.default_timer
sample_time = 10
def time_emptystatus(self, *args, **kwargs):
return self._execute("status")
......@@ -98,5 +94,7 @@
class LogTimeTestSuite(BaseNChangesetsTestSuite):
timer = timeit.default_timer
sample_time = 10
timeout = 300
......@@ -101,11 +99,5 @@
timeout = 300
def __init__(self):
super(LogTimeTestSuite, self).__init__()
self.timer = timeit.default_timer
self.goal_time = 10
def time_log_history(self, repo, n):
self._execute("log", "-r", "tip~%d::" % n)
......@@ -113,12 +105,8 @@
class UpdateTimeTestSuite(BaseNChangesetsTestSuite):
timeout = 500
def __init__(self):
super(UpdateTimeTestSuite, self).__init__()
self.timer = timeit.default_timer
self.goal_time = 10
timer = timeit.default_timer
sample_time = 10
def time_up_tip(self, repo, n):
self._execute("up", "-r", "tip~%d" % n)
......@@ -127,5 +115,7 @@
class BundleTimeTestSuite(BaseNChangesetsTestSuite):
timer = timeit.default_timer
sample_time = 10
timeout = 500
......@@ -130,11 +120,5 @@
timeout = 500
def __init__(self):
super(BundleTimeTestSuite, self).__init__()
self.timer = timeit.default_timer
self.goal_time = 10
def time_bundle(self, repo, n):
self._execute("bundle", "--base", ":(-%d)" % (n+1), "/tmp/bundle.bundle")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment