Skip to content

Commit

Permalink
Test: Fix flaky USB device check
Browse files Browse the repository at this point in the history
Since GitHub runs with KVM, this check fails quite often. The device
doesn't disappear right after the exporter exits.
  • Loading branch information
holesch committed Dec 4, 2023
1 parent ecb4fba commit bd39167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_usbip.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def test_raw_usb_forwarding(vms):
finally:
await vms.client.ssh("doas umount /media/usb")

await vms.client.ssh("! test -e /sys/bus/usb/devices/2-1")
await vms.client.ssh_poll("! test -e /sys/bus/usb/devices/2-1")


async def test_usb_forwarding(vms):
Expand Down

0 comments on commit bd39167

Please sign in to comment.