From 766cdaf337c88aaa3d5cf7c4deedb58a23582765 Mon Sep 17 00:00:00 2001
From: Justus Mueller <justus.mueller@fau.de>
Date: Wed, 5 Jun 2024 15:34:59 +0200
Subject: [PATCH] feat: Remove threshold

---
 src/tests/hash_test.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/tests/hash_test.py b/src/tests/hash_test.py
index 6797676..ef18281 100644
--- a/src/tests/hash_test.py
+++ b/src/tests/hash_test.py
@@ -71,15 +71,10 @@ class HashTest(DecisionTest):
             elif prior_hash != current_hash:
                 # hash changed
                 print(colored("[HashTest] The drive hash changed.", "red"))
-            if iteration >= 2:  # theshold for expected changes
-                print(colored("[HashTest] The threshold of 2 changes before measuring is exceeded. This change is likely to be caused by wear levelling.", "light_blue"))
                 detected_wear_levelling = True
-                break
-            else:
-                print(colored(f"[HashTest] The threshold of 2 changes before measuring is not exceeded yet. Currently at iteration {iteration}. Continuing...", "green"))
             prior_hash = current_hash
-            if iteration >= 168:  # 7 days of observation at max
-                print(colored(f"[HashTest] Reached iteration {iteration} (max iterations was set to 168). Stopping the test.", "light_blue"))
+            if iteration >= 120:  # 5 days of observation at max
+                print(colored(f"[HashTest] Reached iteration {iteration} (max iterations was set to 120 = 5 days). Stopping the test.", "light_blue"))
                 detected_wear_levelling = False
                 break
 
-- 
GitLab