Skip to content

Commit

Permalink
Fix web.http test
Browse files Browse the repository at this point in the history
  • Loading branch information
iliafrenkel committed Jul 29, 2021
1 parent 0483906 commit fac2d4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/web/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func Test_PasteCreateRoute(t *testing.T) {
form.Set("title", "Test create paste")
form.Set("body", "This is a test create paste")
form.Set("expires", "never")
form.Set("privacy", "public")
form.Set("syntax", "none")
form.Set("delete_after_read", "false")
w := httptest.NewRecorder()
Expand All @@ -204,6 +205,7 @@ func Test_PasteCreateNoBodyRoute(t *testing.T) {
form := url.Values{}
form.Set("title", "Test create paste")
form.Set("expires", "never")
form.Set("privacy", "public")
form.Set("syntax", "none")
form.Set("delete_after_read", "false")
w := httptest.NewRecorder()
Expand All @@ -226,6 +228,7 @@ func Test_PasteCreateNoSyntaxRoute(t *testing.T) {
form := url.Values{}
form.Set("title", "Test create paste")
form.Set("body", "This is a test create paste")
form.Set("privacy", "public")
form.Set("delete_after_read", "false")
w := httptest.NewRecorder()
r, _ := http.NewRequest("POST", "/p/", strings.NewReader(form.Encode()))
Expand Down

0 comments on commit fac2d4f

Please sign in to comment.