Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Mar 25, 2024
1 parent 7fed392 commit 21c6776
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2824,11 +2824,12 @@ template ""}}`,
`We cannot {{- template "aa"}}`,
}
for _, disallowedTemplate := range disallowedTemplates {
messageTemplate := disallowedTemplate
t.Run(disallowedTemplate, func(t *testing.T) {
t.Parallel()
response := request(t, s, "PUT", `/mytopic`, `{}`, map[string]string{
"Template": "yes",
"Message": disallowedTemplate,
"Message": messageTemplate,
})
require.Equal(t, 400, response.Code)
require.Equal(t, 40044, toHTTPError(t, response.Body.String()).Code)
Expand Down

0 comments on commit 21c6776

Please sign in to comment.