Module: check_mk
Branch: master
Commit: 2ff4ef34aa1399e6f33e9d04dd054e647868a581
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ff4ef34aa1399…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Apr 5 15:40:24 2018 +0200
Synched test with latest EC changes.
Change-Id: I1ed226fa8f9e72da7d8e42336606034742840bfd
---
tests/integration/cmk/ec/test_mkeventd_status.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/integration/cmk/ec/test_mkeventd_status.py
b/tests/integration/cmk/ec/test_mkeventd_status.py
index 424137d..7b1ef52 100644
--- a/tests/integration/cmk/ec/test_mkeventd_status.py
+++ b/tests/integration/cmk/ec/test_mkeventd_status.py
@@ -72,17 +72,17 @@ def status_server(settings, config, perfcounters, event_status,
event_server):
return cmk.ec.main.g_status_server
-def test_handle_client(event_status, event_server, status_server):
+def test_handle_client(status_server):
s = FakeStatusSocket("GET events")
- status_server.handle_client(event_server, s, True, "127.0.0.1")
+ status_server.handle_client(s, True, "127.0.0.1")
response = s.get_response()
assert len(response) == 1
assert "event_id" in response[0]
-def test_mkevent_check_query_perf(config, perfcounters, event_status, status_server):
+def test_mkevent_check_query_perf(config, event_status, status_server):
for num in range(10000):
event_status.new_event(status_server, CMKEventConsole.new_event({
"host": "heute-%d" % num,
@@ -105,7 +105,7 @@ def test_mkevent_check_query_perf(config, perfcounters, event_status,
status_ser
#import cProfile, StringIO, pstats
#pr = cProfile.Profile()
#pr.enable()
- status_server.handle_client(event_server, s, True, "127.0.0.1")
+ status_server.handle_client(s, True, "127.0.0.1")
#pr.disable()
#ps = pstats.Stats(pr, stream=StringIO.StringIO())
#ps.dump_stats("/tmp/test_mkevent_check_query_perf.profile")