package seatbilling

import (
	"context"
	"os"
	"testing"

	"github.com/tidbcloud/AgentTeam/internal/coredb"
	"github.com/tidbcloud/AgentTeam/internal/coredb/testkit"
)

var seatBillingTiDB testkit.TiDBCoreDBFixture

func TestMain(m *testing.M) {
	os.Exit(testkit.RunTestsWithTiDBCoreDBFixture(m, "seatbilling", &seatBillingTiDB))
}

func startSeatBillingRollbackDB(t *testing.T, ctx context.Context) coredb.DB {
	t.Helper()
	return seatBillingTiDB.RollbackDB(t, ctx)
}
