Skip to content

Commit

Permalink
[CHAR-3194] fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
joserojasbl committed Apr 11, 2022
1 parent 39c38cc commit 2afc3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/http_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func TestHTTPWithBodyFilter(t *testing.T) {
filterKeys: []string{},
log: logger.Logger{},
},
want: `{"level":"info","application":"TestHTTPRequestLogger","host":"example.com","ip":"192.0.2.1","params":"","path":"/with_body","request_id":"tracking_id_ExampleHTTP","tracking_id":"tracking_id_ExampleHTTP","user_agent":"","verb":"POST","trace_id":"00000000000000000000000000000000","http_status":200,"duration_ms":0,"body":null,"timestamp":"2009-11-10T23:00:00.000Z","message":"POST /with_body"}` + "\n",
want: `{"level":"info","application":"TestHTTPRequestLogger","host":"example.com","ip":"192.0.2.1","params":"","path":"/with_body","request_id":"tracking_id_ExampleHTTP","tracking_id":"tracking_id_ExampleHTTP","user_agent":"","verb":"POST","trace_id":"00000000000000000000000000000000","http_status":200,"duration_ms":0,"body":{"hello":"world"},"timestamp":"2009-11-10T23:00:00.000Z","message":"POST /with_body"}` + "\n",
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 2afc3c0

Please sign in to comment.