Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Aug 16, 2024
1 parent 45c1692 commit f76dc29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions ldclient/impl/integrations/files/file_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions ldclient/testing/test_file_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}')
Expand Down

0 comments on commit f76dc29

Please sign in to comment.