summaryrefslogtreecommitdiff
path: root/test/test_e2e.py
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2023-03-25 22:29:09 +0900
committerRyo Nakamura <upa@haeena.net>2023-03-25 22:29:09 +0900
commit834407379dfe4a3205259f08a02259458b6a6401 (patch)
tree777f0b6881790c4e663dc18dd0727843ca6016a1 /test/test_e2e.py
parent5ac087462106206b884f4d0a4f5dec0b630156ef (diff)
fix error handling when scan thread failed.
set chunk pool to fill to invoke copy threads when scan failed.
Diffstat (limited to 'test/test_e2e.py')
-rw-r--r--test/test_e2e.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_e2e.py b/test/test_e2e.py
index 018be96..521992e 100644
--- a/test/test_e2e.py
+++ b/test/test_e2e.py
@@ -61,6 +61,11 @@ def test_single_copy(mscp, src_prefix, dst_prefix, src, dst):
src.cleanup()
dst.cleanup()
+@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix)
+def test_failed_to_copy_nonexistent_file(mscp, src_prefix, dst_prefix):
+ src = "nonexistent_src"
+ dst = "nonexistent_dst"
+ run2ng([mscp, "-H", src_prefix + src, dst_prefix + dst])
param_double_copy = [
(File("src1", size = 1024 * 1024), File("src2", size = 1024 * 1024),