Add suggested fix when checksums dont match (#1812)

This commit is contained in:
Julian Friedman 2020-10-15 14:15:57 +01:00 committed by GitHub
parent 9e655c6b02
commit 08db0e8fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ func ConfigMapsFromTestFile(t *testing.T, name string, allowed ...string) (*core
if hasExampleBody && hasExampleChecksumAnnotation {
wantChecksum := configmap.Checksum(exampleBody)
if gotChecksum != wantChecksum {
t.Errorf("example checksum annotation = %s, want %s", gotChecksum, wantChecksum)
t.Errorf("example checksum annotation = %s, want %s (you may need to re-run ./hack/update-codegen.sh)", gotChecksum, wantChecksum)
}
}