Skip to content

Commit 865b0dd

Browse files
committed
fix: add net to vm for test_vhost_user_metrics
We need to add net interface so the `vm.start()` will wait for a vm to boot. Otherwise the `time.sleep(0.3)` is not enough for a vm to boot and connect to the vhost-user-backend. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent baf63cb commit 865b0dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration_tests/performance/test_vhost_user_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_vhost_user_block_metrics(
3333
)
3434
vm.spawn(log_level="Info")
3535
vm.basic_config(vcpu_count=vcpu_count)
36+
vm.add_net_iface()
3637

3738
# Add a block device to test resizing.
3839
fs = drive_tools.FilesystemFile(size=orig_size)

0 commit comments

Comments
 (0)