From 776d47e5ae698b4de2ba846cefeb9d04c8124d7d Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Tue, 17 Dec 2024 09:38:44 -0500 Subject: [PATCH] fix: remove cron stats data to stop jobs --- server/service/integration_mdm_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/service/integration_mdm_test.go b/server/service/integration_mdm_test.go index e023683c61c0..50f30b97d510 100644 --- a/server/service/integration_mdm_test.go +++ b/server/service/integration_mdm_test.go @@ -640,6 +640,11 @@ func (s *integrationMDMTestSuite) TearDownTest() { return err }) + mysql.ExecAdhocSQL(t, s.ds, func(q sqlx.ExtContext) error { + _, err := q.ExecContext(ctx, "DELETE FROM cron_stats") + return err + }) + // clear any host dep assignments mysql.ExecAdhocSQL(t, s.ds, func(q sqlx.ExtContext) error { _, err := q.ExecContext(ctx, "DELETE FROM host_dep_assignments")