Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pkg/common/table_info_shared_schema_guard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ func TestLatestTiDBTableInfoSharedSchemaGuard(t *testing.T) {
"PKIsHandle", "IsCommonHandle", "CommonHandleVersion",
"Comment", "AutoIncID", "AutoIncIDExtra", "AutoIDCache", "AutoRandID",
"MaxColumnID", "MaxIndexID", "MaxForeignKeyID", "MaxConstraintID", "UpdateTS", "AutoIDSchemaID",
"ShardRowIDBits", "MaxShardRowIDBits", "AutoRandomBits", "AutoRandomRangeBits", "PreSplitRegions", "TableSplitPolicy",
"ShardRowIDBits", "MaxShardRowIDBits", "AutoRandomBits", "AutoRandomRangeBits", "PreSplitRegions",
"Partition", "Compression", "View", "Sequence", "Lock", "Version", "TiFlashReplica", "IsColumnar",
"TempTableType", "TableCacheStatusType", "PlacementPolicyRef", "StatsOptions",
"ExchangePartitionInfo", "TTLInfo", "IsActiveActive", "SoftdeleteInfo", "Affinity",
"Revision", "DBID",
// These table-level storage settings do not affect the shared column schema.
"EngineAttribute", "StorageClassTier", "StorageClassTransitions", "Mode",
"Mode",
},
},
{
Expand All @@ -106,8 +106,8 @@ func TestLatestTiDBTableInfoSharedSchemaGuard(t *testing.T) {
typeName: "IndexInfo",
expectedFields: []string{
"ID", "Name", "Table", "Columns", "State", "BackfillState", "Comment", "Tp", "Unique", "Primary",
"Invisible", "Global", "MVIndex", "VectorInfo", "InvertedInfo", "FullTextInfo",
"ConditionExprString", "AffectColumn", "RegionSplitPolicy", "GlobalIndexVersion",
"Invisible", "Global", "MVIndex", "VectorInfo",
"ConditionExprString", "AffectColumn", "GlobalIndexVersion",
},
},
{
Expand Down Expand Up @@ -210,7 +210,7 @@ func buildRequiredTypesByPackage(cases []structGuardCase) map[packageKey][]strin
func queryModuleInfo(t *testing.T, modulePath string) *moduleInfo {
t.Helper()

cmd := exec.Command("go", "mod", "download", "-json", modulePath+"@master")
cmd := exec.Command("go", "mod", "download", "-json", modulePath+"@release-8.5")
output, cmdErr := cmd.CombinedOutput()
mod, decodeErr := decodeModuleInfo(output)
require.NoError(t, decodeErr, "unmarshal module metadata for %s failed", modulePath)
Expand Down
Loading