Skip to content

Commit

Permalink
migration: Fix unix socket number issue
Browse files Browse the repository at this point in the history
QEMU open more connection in postcopy. So update code.

Signed-off-by: lcheng <[email protected]>
  • Loading branch information
cliping committed Feb 27, 2024
1 parent 724ff47 commit 3b54ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvirt/tests/src/migration/migrate_over_unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _check_socket():
global sockets
sockets = [x.strip() for x in _res if socket_pattern.match(x)]
logging.debug("Found sockets: %s", sockets)
return len(sockets) == int(exp_num)
return len(sockets) >= int(exp_num)

found_expected = utils_misc.wait_for(_check_socket, timeout=30)

Expand Down

0 comments on commit 3b54ff1

Please sign in to comment.