Fix integration tests

This commit is contained in:
Martin Angers 2024-04-03 15:44:23 -04:00
parent 12f7bb0edc
commit 0a3996a25e

View file

@ -40,6 +40,11 @@ type withDS struct {
func (ts *withDS) SetupSuite(dbName string) {
t := ts.s.T()
ts.ds = mysql.CreateNamedMySQLDS(t, dbName)
// remove any migration-created labels
mysql.ExecAdhocSQL(t, ts.ds, func(q sqlx.ExtContext) error {
_, err := q.ExecContext(context.Background(), `DELETE FROM labels`)
return err
})
test.AddAllHostsLabel(t, ts.ds)
// setup the required fields on AppConfig