From 574a0f91609018b889b1c457150eecd2a86d31a5 Mon Sep 17 00:00:00 2001 From: dylanhitt Date: Mon, 16 Dec 2024 13:49:12 -0500 Subject: [PATCH] chore: use AddResponse over AddError in test --- openapi_operations_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi_operations_test.go b/openapi_operations_test.go index c023909a..c5711a6f 100644 --- a/openapi_operations_test.go +++ b/openapi_operations_test.go @@ -98,7 +98,7 @@ func TestWithGlobalResponseType(t *testing.T) { routeGlobal := Get(s, "/test-global", testController) routeCustom := Get(s, "/test-custom", testController, OptionAddResponse(http.StatusBadRequest, "My Local Error", Response{Type: MyLocalResponse{}}), - OptionAddError(http.StatusTeapot, "My Local Teapot", Response{Type: HTTPError{}}), + OptionAddResponse(http.StatusTeapot, "My Local Teapot", Response{Type: HTTPError{}}), ) require.Equal(t, "My Global Error", *routeGlobal.Operation.Responses.Value("400").Value.Description, "Overrides Fuego's default 400 error")