예제 #1
0
파일: Linear.py 프로젝트: ticoann/WMCore
 def __init__(self, timeout=1, max=10, unit=1):
     Basic.__init__(self, timeout, max, unit)
     self.name = "Linear"
예제 #2
0
 def testBasicSuccesss(self):
     # This'll work on the 5th attempt
     dmy = DummyClass(5)
     # use miliseconds so the tests don't take forever...
     rty = Basic(unit=1 / 1000)
     rty.run(dmy.function)
예제 #3
0
 def testBasicFail(self):
     # This'll work on the 15th attempt, which means the test will throw here
     dmy = DummyClass(15)
     # use miliseconds so the tests don't take forever...
     rty = Basic(unit=1 / 1000)
     self.assertRaises(RetryFailException, rty.run, dmy.function)
예제 #4
0
파일: Squared.py 프로젝트: ticoann/WMCore
 def __init__(self, timeout=1, max=10, unit=1):
     Basic.__init__(self, timeout, max, unit)
     self.name = 'Squared'
예제 #5
0
 def __init__(self, timeout=1, max=10, unit=1):
     Basic.__init__(self, timeout, max, unit)
     self.name = 'Exponential'
예제 #6
0
 def __init__(self, timeout = 1, max = 10, unit = 1):
     Basic.__init__(self, timeout, max, unit)
     self.name = 'Squared'
예제 #7
0
 def __init__(self, timeout = 1, max = 10, unit = 1):
     Basic.__init__(self, timeout, max, unit)
     self.name = 'Exponential'
예제 #8
0
파일: Basic_t.py 프로젝트: cinquo/WMCore
 def testBasicSuccesss(self):
     # This'll work on the 5th attempt
     dmy = DummyClass(5)
     # use miliseconds so the tests don't take forever...
     rty = Basic(unit = 1/1000)
     rty.run(dmy.function)