diff --git a/src/tests/hash_test.py b/src/tests/hash_test.py
index 00adc576ff233e075b089b664a64a600549c2c61..6797676ec63be460b2410371c0620758dd94ed8b 100644
--- a/src/tests/hash_test.py
+++ b/src/tests/hash_test.py
@@ -29,8 +29,8 @@ class HashTest(DecisionTest):
         print(colored("[HashTest] Running the hash test!", 'light_blue'))
         print(colored("[HashTest] Copying the demo files.", 'light_grey'))
         self.drive_handle.copy_demo_files()
-        print(colored("[HashTest] Waiting 120s for the OS to flush the write cache.", "light_grey"))
         self.drive_handle.flush_cache()
+        print(colored("[HashTest] Waiting 120s for the OS to flush the write cache.", "light_grey"))
         time.sleep(120)
         print(colored(f"[HashTest] The current hash of the drive is equal to {self.drive_handle.generate_hash()}", "yellow"))