Rename the retained history limit diagnostic

This commit is contained in:
2026-10-27 15:18:57 +00:00
parent 1ce147c9f6
commit 24ab623cb2
8 changed files with 9 additions and 10 deletions

View File

@@ -274,7 +274,7 @@ func hasHistoryLimitDiagnostic(t *testing.T, err error) bool {
t.Fatalf("error type = %T, want *LoadError", err)
}
for _, diagnostic := range loadErr.Diagnostics() {
if diagnostic.Code == CodeExplainLimitExceeded {
if diagnostic.Code == CodeHistoryLimitExceeded {
return true
}
}