Fix unit tests

This commit is contained in:
Griatch 2023-05-18 23:38:14 +02:00
parent 09253dce31
commit d13ac065c7
8 changed files with 29 additions and 86 deletions

View file

@ -128,7 +128,6 @@ class ExtendedLoopingCall(LoopingCall):
if self.running and self.interval > 0:
total_runtime = self.clock.seconds() - self.starttime
interval = self.start_delay or self.interval
print("next_call_time:", total_runtime, interval, self.clock.seconds(), self.starttime)
return max(0, interval - (total_runtime % self.interval))