Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphg6 committed Dec 18, 2023
1 parent 64ecb63 commit 1587758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (m *MockHTTPClientExecutePanic) Do(req *http.Request) (*http.Response, erro
func TestRequestExecutePanic(t *testing.T) {
defer func() {
r := recover()
if r.(*logrus.Entry).Message != "error on execute request" {
if r.(*logrus.Entry).Message != "error on execute request: mock do error" {
t.Error("The panic message it's not throwed")
}
}()
Expand Down Expand Up @@ -487,7 +487,7 @@ func (m *MockHTTPClientReadBodyPanic) Do(req *http.Request) (*http.Response, err
func TestPanicOnReadBody(t *testing.T) {
defer func() {
r := recover()
if r.(*logrus.Entry).Message != "error on read the body" {
if r.(*logrus.Entry).Message != "error on read the body: everything is broken /o\\" {
t.Error("The panic message it's not throwed")
}
}()
Expand Down

0 comments on commit 1587758

Please sign in to comment.