mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
17 lines
311 B
Go
17 lines
311 B
Go
|
|
package worker
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"github.com/fleetdm/fleet/v4/server/datastore/mysql"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestSoftwareWorker(t *testing.T) {
|
||
|
|
ds := mysql.CreateMySQLDS(t)
|
||
|
|
// call TruncateTables immediately as some DB migrations may create jobs
|
||
|
|
mysql.TruncateTables(t, ds)
|
||
|
|
|
||
|
|
mysql.SetTestABMAssets(t, ds, "fleet")
|
||
|
|
|
||
|
|
}
|