Skip to content

Commit

Permalink
revert assert statusOK
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankert01 committed Sep 18, 2024
1 parent d0c2e67 commit 9bddd39
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/webservice/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
}
Expand Down

0 comments on commit 9bddd39

Please sign in to comment.