Commit 781b7d27 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][prefix][algorithms] Ensure max is bigger than threshold in db input loop evaluator

This makes the validate part more coherent.
parent 05b2b084
......@@ -56,6 +56,9 @@ class Algorithm:
value = data["in_loop"].value
self.max += value
if abs(self.max - self.threshold) <= 1:
self.max = self.threshold + 2
return True
def validate(self, result):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment