fix misleading comment variable

This commit is contained in:
Henry 2021-03-09 14:27:47 +01:00 committed by cblgh
parent ae44a878b8
commit b10b2513ec
1 changed files with 2 additions and 3 deletions

View File

@ -103,9 +103,9 @@ func TestPinnedNotices(t *testing.T) {
}
for i, tcase := range cases {
desc, has := allTheNotices[tcase.Name]
notices, has := allTheNotices[tcase.Name]
r.True(has, "case %d failed - notice %s not in map", i, tcase.Name)
r.Len(desc, tcase.Count, "case %d failed - wrong number of notices for %s", i, tcase.Name)
r.Len(notices, tcase.Count, "case %d failed - wrong number of notices for %s", i, tcase.Name)
}
})
@ -130,7 +130,6 @@ func TestPinnedNotices(t *testing.T) {
notice.Title = "política de privacidad"
notice.Content = "solo una prueba"
notice.Language = "es"
// save the new notice
err = db.Notices.Save(ctx, &notice)
r.NoError(err)