Skip to content

Commit

Permalink
test: run the garbage collector less often (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Dec 22, 2023
1 parent 819ae68 commit ce04ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def build_request(options: FinalRequestOptions) -> None:
ITERATIONS = 10
for _ in range(ITERATIONS):
build_request(options)
gc.collect()

gc.collect()
snapshot_after = tracemalloc.take_snapshot()

tracemalloc.stop()
Expand Down Expand Up @@ -871,8 +871,8 @@ def build_request(options: FinalRequestOptions) -> None:
ITERATIONS = 10
for _ in range(ITERATIONS):
build_request(options)
gc.collect()

gc.collect()
snapshot_after = tracemalloc.take_snapshot()

tracemalloc.stop()
Expand Down

0 comments on commit ce04ec2

Please sign in to comment.