Commit 4dd97aa1 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Test client timeout for import-export daemon

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent d6547a1c
......@@ -118,6 +118,7 @@ $impexpd $src_statusfile invalidmode >/dev/null 2>&1 &&
$impexpd $src_statusfile import --compression=rot13 >/dev/null 2>&1 &&
err "daemon-util succeeded with invalid compression"
upto 'Generate test data'
cat $(get_testfile proc_drbd8.txt) $(get_testfile cert1.pem) > $testdata
# Generate about 7.5 MB of test data
......@@ -269,6 +270,12 @@ do_import &>$dst_output & imppid=$!
checkpids $exppid $imppid || \
err 'Listening with timeout failed when it should not'
upto 'Connect timeout'
# Setting lower timeout as nothing will be listening on port 0
: | connect_timeout=1 do_export_to_port 0 &>$src_output & exppid=$!
checkpids $exppid && err 'Connection did not time out when it should'
upto 'No compression'
compress=none do_import > $statusdir/recv-nocompr 2>$dst_output & imppid=$!
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment