//go:build e2e

package e2e_test

import (
	"os"
	"testing"

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

var e2eTiDBRuntimeFixture = testkit.NewTiDBRuntimeFixture(testkit.TiDBTestRuntimeUnistore)

func TestMain(m *testing.M) {
	os.Exit(testkit.RunTestsWithTiDBRuntimeFixture(m, "e2e", e2eTiDBRuntimeFixture))
}

func startE2EInitializedTiDB(t *testing.T) string {
	t.Helper()
	return testkit.StartInitializedTiDBWithRootDSN(t, e2eTiDBRuntimeFixture.RootDSN(t))
}
