Skip to content

Commit

Permalink
Merge pull request #7581 from christian-monch/fix-test-force-checkdat…
Browse files Browse the repository at this point in the history
…apresent

Relax condition in `test_force_checkdatapresent` to avoid flaky test failures
  • Loading branch information
yarikoptic committed Apr 19, 2024
2 parents 84b2bd5 + 73fa6d5 commit 8639b90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.d/pr-7581.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 🧪 Tests

- Relax condition in `test_force_checkdatapresent` to avoid flaky test failures. [PR #7581](https://github.com/datalad/datalad/pull/7581) (by [@christian-monch](https://github.com/christian-monch))
7 changes: 2 additions & 5 deletions datalad/core/distributed/tests/test_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,8 @@ def test_force_checkdatapresent(srcpath=None, dstpath=None):
# before then -- we would report that update was pushed since update had a
# slightly different git-annex timestamp locally from the remote, and thus commits
# were different
if external_versions['cmd:annex'] < '10.20231212':
assert_in_results(res, action='publish', status='ok',
refspec='refs/heads/git-annex:refs/heads/git-annex')
else:
raise
assert_in_results(res, action='publish', status='ok',
refspec='refs/heads/git-annex:refs/heads/git-annex')

assert_in_results(res, status='ok',
path=str(src.pathobj / 'test_mod_annex_file'),
Expand Down

0 comments on commit 8639b90

Please sign in to comment.