blob: 1b3c9b337c3b565f01bc16ff25f075dcd25158b6 [file] [log] [blame]
package ignore
import (
"testing"
assert "github.com/stretchr/testify/require"
"go.skia.org/infra/go/database/testutil"
"go.skia.org/infra/go/testutils"
"go.skia.org/infra/golden/go/db"
)
func TestSQLIgnoreStore(t *testing.T) {
testutils.LargeTest(t)
// Set up the database. This also locks the db until this test is finished
// causing similar tests to wait.
migrationSteps := db.MigrationSteps()
mysqlDB := testutil.SetupMySQLTestDatabase(t, migrationSteps)
defer mysqlDB.Close(t)
vdb, err := testutil.LocalTestDatabaseConfig(migrationSteps).NewVersionedDB()
assert.NoError(t, err)
defer testutils.AssertCloses(t, vdb)
store := NewSQLIgnoreStore(vdb, nil, nil)
testIgnoreStore(t, store)
}