Skip to content

Commit 67499bd

Browse files
committed
restore flush() removed in error, remove commented lines
1 parent c0d60d7 commit 67499bd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

splunklib/modularinput/event_writer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ def write_xml_document(self, document):
8484
def close(self):
8585
"""Write the closing </stream> tag to make this XML well formed."""
8686
self._out.write("</stream>")
87+
self._out.flush()

tests/modularinput/test_script.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,3 @@ def stream_events(self, inputs, ew):
231231
assert output.err == ""
232232
assert isinstance(script.service, Service)
233233
assert script.service.authority == script.authority_uri
234-
# self.test.assertIsInstance(service, Service)
235-
# self.test.assertEqual(str(service.authority), inputs.metadata['server_uri'])

0 commit comments

Comments
 (0)