From 737a26fee353a35a7e989422e882a8c4d303e70c Mon Sep 17 00:00:00 2001 From: Daan Sprenkels Date: Tue, 12 May 2020 19:09:25 +0200 Subject: [PATCH] test: Look for StatusFound instead of StatusOk; NFC --- handlers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers_test.go b/handlers_test.go index ed2013d..4c3de8d 100644 --- a/handlers_test.go +++ b/handlers_test.go @@ -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 {