Skip to content

Commit cb1ba18

Browse files
author
Dylan Huang
committed
fix test_logs_server.py
1 parent 8104c85 commit cb1ba18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_logs_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def test_serve_logs_port_parameter(self, temp_build_dir):
373373
serve_logs(port=test_port)
374374

375375
# Verify that LogsServer was created with the correct port
376-
mock_logs_server_class.assert_called_once_with(port=test_port)
376+
mock_logs_server_class.assert_called_once_with(port=test_port, elasticsearch_config=None)
377377
# Verify that the run method was called on the instance
378378
mock_server_instance.run.assert_called_once()
379379

@@ -387,7 +387,7 @@ def test_serve_logs_default_port(self, temp_build_dir):
387387
serve_logs()
388388

389389
# Verify that LogsServer was created with None port (which will use LogsServer's default of 8000)
390-
mock_logs_server_class.assert_called_once_with(port=None)
390+
mock_logs_server_class.assert_called_once_with(port=None, elasticsearch_config=None)
391391
# Verify that the run method was called on the instance
392392
mock_server_instance.run.assert_called_once()
393393

0 commit comments

Comments
 (0)