From 9bddd3960240412cf47918dc624f478149c1248a Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 18 Sep 2024 14:04:00 +0800 Subject: [PATCH] revert assert statusOK --- pkg/webservice/handlers_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/webservice/handlers_test.go b/pkg/webservice/handlers_test.go index 7b5bdb241..b9e4d0881 100644 --- a/pkg/webservice/handlers_test.go +++ b/pkg/webservice/handlers_test.go @@ -324,7 +324,6 @@ func TestGetStackInfo(t *testing.T) { assert.NilError(t, err, "Error creating request") resp := &MockResponseWriter{} getStackInfo(resp, req) - assert.Equal(t, resp.statusCode, http.StatusOK, statusCodeError) assertIsStackInfo(t, resp.outputBytes) // Create a deep call stack (30 calls) and check if the stack trace is larger than 5000 bytes @@ -338,7 +337,6 @@ func TestGetStackInfo(t *testing.T) { req, err = http.NewRequest("GET", "/stack", nil) assert.NilError(t, err, httpRequestError) getStackInfo(resp, req) - assert.Equal(t, resp.statusCode, http.StatusOK, statusCodeError) assertIsStackInfo(t, resp.outputBytes) assert.Check(t, len(resp.outputBytes) > 5000, "Expected stack trace larger than 5000 bytes") }