diff --git a/test/test_database.py b/test/test_database.py
index 5842786a6544df3d8565bc297cfd50ca3cfeeecb..86f0512b0e03f1bc5bc20cb9c9fd5de1e8d7ffd3 100644
--- a/test/test_database.py
+++ b/test/test_database.py
@@ -256,8 +256,7 @@ class DatabaseTest(unittest.TestCase):
     def test_seconds_to_next_update(self):
         """Compares 24h - time slept and the function return value."""
         # Insert current time LastUpdated table in db
-        stmt = "UPDATE LastUpdated SET Timestamp = ? LIMIT 1"
-        self.database.conn.execute(stmt, (datetime.now(),))
+        self.database.update_last_updated()
         # Sleeps to make time difference
         sleep_time = 2
         sleep(sleep_time)