exasol / integration-test-docker-environment

A docker-based environment for integration tests with the EXASOL DB.
https://exasol.github.io/integration-test-docker-environment/
MIT License
6 stars 2 forks source link

Use events in IsDatabaseReadyThread #256

Open tomuben opened 1 year ago

tomuben commented 1 year ago

Background

See comment (https://github.com/exasol/integration-test-docker-environment/pull/248#discussion_r969203368). Currently IsDatabaseReadyThread uses boolen variables which are written within the classes thread, but read in the outside thread. We should refactor it using a thread-safe mechanism, for example using https://docs.python.org/3/library/threading.html#event-objects.

Acceptance Criteria

  1. Use event object for both finish and is_ready in class IsDatabaseReadyThread.