Fail the grants table test for any row whose user is not composed, so a row can never pass for a missing user (issue 1955)

This commit is contained in:
2026-10-29 23:38:59 +01:00
parent 9f0bb1cfa4
commit 85f5fd0b22
+6 -3
View File
@@ -800,9 +800,12 @@ func healthChecks(t *testing.T) {
}
}
}
for name := range mayNot {
if !seen[name] {
t.Errorf("no user %s was composed", name)
// Every row names a user that was composed, in either table: a row for a user absent would pass for nothing.
for _, table := range []map[string][]string{may, mayNot} {
for name := range table {
if !seen[name] {
t.Errorf("no user %s was composed", name)
}
}
}
}