Skip to content

Commit

Permalink
Make sure the file is not uploaded when it was locked
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen committed Nov 6, 2015
1 parent eb02cdb commit fa6668c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/owncloud/test_locking.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def owner_worker(step):
# Client does not terminate before 2.1: https://github.com/owncloud/client/issues/4037
logger.warning(err.message)

expect_webdav_does_not_exist(os.path.join(SHARED_DIR_NAME, 'file2.dat'))

step(7, 'Unlock item and sync again')

for lock in use_locks:
Expand All @@ -142,6 +144,8 @@ def owner_worker(step):

run_ocsync(d)

expect_webdav_exist(os.path.join(SHARED_DIR_NAME, 'file2.dat'))

step(9, 'Final - Unlock everything')

lock_provider.unlock()
Expand Down

0 comments on commit fa6668c

Please sign in to comment.