Skip to content

Commit e9b7ce4

Browse files
committed
test: fix retry thread cycling in _write_batching unit test
1 parent a5f0a77 commit e9b7ce4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_influxdb_client_3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def test_write_api_custom_options_no_error(self):
8484
self.assertTrue(True)
8585
except Exception as e:
8686
self.fail(f"Write API with default options raised an exception: {str(e)}")
87+
finally:
88+
client._write_api._on_complete() # abort batch writes - otherwise test cycles through urllib3 retries
8789

8890
def test_default_client(self):
8991
expected_precision = DefaultWriteOptions.write_precision.value

0 commit comments

Comments
 (0)