diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd91a3b..2b6c2a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,8 @@ jobs: - uses: ./.github/actions/build - uses: ./.github/actions/build-docs + - uses: mxschmitt/action-tmate@v3 + - name: Run tests run: make test diff --git a/ldclient/impl/integrations/files/file_data_source.py b/ldclient/impl/integrations/files/file_data_source.py index 063c169..9c989c7 100644 --- a/ldclient/impl/integrations/files/file_data_source.py +++ b/ldclient/impl/integrations/files/file_data_source.py @@ -208,6 +208,7 @@ def _poll(self): changed = False for file_path, file_time in self._file_times.items(): if new_times.get(file_path) is not None and new_times.get(file_path) != file_time: + print(f"File {file_path} modification time has changed from {file_time} to {new_times.get(file_path)}") changed = True break self._file_times = new_times diff --git a/ldclient/testing/test_file_data_source.py b/ldclient/testing/test_file_data_source.py index cb8dec3..66d513d 100644 --- a/ldclient/testing/test_file_data_source.py +++ b/ldclient/testing/test_file_data_source.py @@ -119,8 +119,10 @@ def make_temp_file(content): return path def replace_file(path, content): + print(f"Preparing to replace file at path {path} with content {content}") with open(path, 'w') as f: f.write(content) + print(f"File replaced at path {path} with content {content}") def test_does_not_load_data_prior_to_start(): path = make_temp_file('{"flagValues":{"key":"value"}}')