Merge pull request #146 from travisturner/remove-errant-print

remove errant println from test
This commit is contained in:
Travis Turner 2020-03-03 12:39:28 -06:00 committed by GitHub
commit 92eae8e715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -641,7 +641,6 @@ func TestHandler_Endpoints(t *testing.T) {
fieldName := "f-int-ubound-err"
h.ServeHTTP(w, test.MustNewHTTPRequest("POST", fmt.Sprintf("/index/i0/field/%s", fieldName),
strings.NewReader(`{"options":{"type":"int", "min": 10, "max": -10}}`)))
fmt.Println("body", w.Body.String())
if w.Code != gohttp.StatusBadRequest {
t.Fatalf("unexpected status code: %d", w.Code)
}