summaryrefslogtreecommitdiff
path: root/units/zapper
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2022-05-30 13:38:07 +0200
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2022-06-01 13:18:26 +0200
commitef59fb20b81b4ea2d186f1241f884b0e06072621 (patch)
tree35ff8358816f5d63072ee04ad481b7aa799916d2 /units/zapper
parent58eb482a29441a62c89f3f55d08995f399442f3c (diff)
delay zapperized insertion/removal for 5s
Previously the command to connect or disconnect the USB device was sent almost at the same time that removable_watcher started waiting for that change to take place. This meant that there was a big chance for that action to happen _before_ the test could observe the change. This patch introduces a delay (with a background thread) that calls Zapper after 5 seconds from starting the observation. The whole test is programmed to wait for 20s, so the delay doesn't change the duration of the test. It's also not some fixing-race-conditions-with-random-sleeps kind of fix.
Diffstat (limited to 'units/zapper')
0 files changed, 0 insertions, 0 deletions