Skip to content

Commit ea8dae0

Browse files
committed
Update test_service.py
1 parent 2adde31 commit ea8dae0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ def test_hec_event(self):
175175
event_collector_endpoint = client.Endpoint(service_hec, "/services/collector/event")
176176
msg = {"index": "main", "event": "Hello World"}
177177
response = event_collector_endpoint.post("", body=json.dumps(msg))
178-
body = response.body.read()
179-
self.assertEqual(body.code, 200)
178+
self.assertEqual(response.status,200)
180179

181180

182181
class TestCookieAuthentication(unittest.TestCase):

0 commit comments

Comments
 (0)