mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
pytest: removes warning (could not join thread)
This commit is contained in:
parent
a1da332dba
commit
2364fc892c
@ -73,7 +73,7 @@ def test_validate_set_timeout(caplog: pytest.LogCaptureFixture) -> None:
|
|||||||
)
|
)
|
||||||
self.thread.start()
|
self.thread.start()
|
||||||
|
|
||||||
def __del__(self) -> None:
|
def close_connection(self) -> None:
|
||||||
self.loop.call_soon_threadsafe(self.loop.stop)
|
self.loop.call_soon_threadsafe(self.loop.stop)
|
||||||
self.thread.join()
|
self.thread.join()
|
||||||
|
|
||||||
@ -126,3 +126,4 @@ def test_validate_set_timeout(caplog: pytest.LogCaptureFixture) -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
service_instance.value_2 = 3.0 # no assertion raised
|
service_instance.value_2 = 3.0 # no assertion raised
|
||||||
|
service_instance._driver.close_connection()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user