Skip to content

Commit

Permalink
relax condition in test_force_checkdatapresent
Browse files Browse the repository at this point in the history
This commit changes the code in such a way that
it does no longer assume identical timestamps
in the local and the remote git-annex branch.
  • Loading branch information
christian-monch committed Apr 17, 2024
1 parent b50f5d3 commit 250386f
Showing 1 changed file with 2 additions and 5 deletions.
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 250386f

Please sign in to comment.