create file at the remote although file size is 0

This commit is contained in:
Ryo Nakamura
2022-11-05 19:13:53 +09:00
parent 24126c927d
commit 6e6e5066c7
3 changed files with 17 additions and 10 deletions

View File

@@ -163,7 +163,9 @@ def test_cannot_override_file_with_dir(mscp, src_prefix, dst_prefix):
@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix)
def test_transfer_zero_bytes(mscp, src_prefix, dst_prefix):
src = File("src", size = 0).make()
dst = File("dst")
run2ok([mscp, src_prefix + src.path, dst_prefix + "dst"])
assert os.path.exists("dst")
src.cleanup()
dst.cleanup()