Skip to content

Commit

Permalink
Touch file before writing
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 6, 2023
1 parent 1e0bcec commit d1e6f83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def setup_otel():
file_name = os.environ.get(
"SYNAPSE_OTEL_INTEGRATION_TEST_FILE_NAME", "traces.txt"
)
export_file = open(
f"tests/integration/otel/{file_name}", "w", encoding="utf-8"
)
path = f"tests/integration/otel/{file_name}"
utils.touch(path)
export_file = open(path, "w", encoding="utf-8")
trace.get_tracer_provider().add_span_processor(
BatchSpanProcessor(ConsoleSpanExporter(out=export_file))
)
Expand Down

0 comments on commit d1e6f83

Please sign in to comment.