test: Look for StatusFound instead of StatusOk; NFC

This commit is contained in:
Daan Sprenkels 2020-05-12 19:09:25 +02:00
parent 016ffa8949
commit 737a26fee3

View File

@ -92,7 +92,7 @@ func TestIssue43(t *testing.T) {
req.Header.Add("Content-Type", form.FormDataContentType())
rr := httptest.NewRecorder()
srv.ServeHTTP(rr, req)
checkStatusCode(t, rr, http.StatusOK)
checkStatusCode(t, rr, http.StatusFound)
rawURL := strings.SplitN(rr.Body.String(), "\n", 2)[0]
pasteURL, err := url.Parse(rawURL)
if err != nil {