package daemon

import (
	"testing"

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

func openDaemonTestTiDB(t *testing.T) coredb.DB {
	t.Helper()
	dsn := testkit.StartInitializedTiDBWithPackageRuntime(t, testkit.TiDBTestRuntimeUnistore)
	return coredb.WrapSQLDB(testkit.OpenTiDB(t, dsn))
}
