From da540d96991d7db4dff99743c0734c280da79fe2 Mon Sep 17 00:00:00 2001 From: okJiang <819421878@qq.com> Date: Fri, 24 Nov 2023 14:48:03 +0800 Subject: [PATCH] fix ut --- cdc/api/v2/changefeed_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdc/api/v2/changefeed_test.go b/cdc/api/v2/changefeed_test.go index 2f526556fa6..7fb9a0f374a 100644 --- a/cdc/api/v2/changefeed_test.go +++ b/cdc/api/v2/changefeed_test.go @@ -322,12 +322,13 @@ func TestUpdateChangefeed(t *testing.T) { mockCapture.EXPECT().IsOwner().Return(true).AnyTimes() // case 1 invalid id - invalidID := "#Invalid_" + invalidID := "_Invalid_" w := httptest.NewRecorder() req, _ := http.NewRequestWithContext(context.Background(), update.method, fmt.Sprintf(update.url, invalidID), nil) router.ServeHTTP(w, req) respErr := model.HTTPError{} + t.Logf("body: %s", w.Body.String()) err := json.NewDecoder(w.Body).Decode(&respErr) require.Nil(t, err) require.Contains(t, respErr.Code, "ErrAPIInvalidParam")