From 834407379dfe4a3205259f08a02259458b6a6401 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 25 Mar 2023 22:29:09 +0900 Subject: fix error handling when scan thread failed. set chunk pool to fill to invoke copy threads when scan failed. --- test/test_e2e.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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), -- cgit v1.2.3