mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fix integration tests
This commit is contained in:
parent
12f7bb0edc
commit
0a3996a25e
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue