Skip to content

Commit

Permalink
Increase delay in tests verify Sysbox rootfs monitor.
Browse files Browse the repository at this point in the history
The sysbox-mgr's rootfs monitor delay was increased from
1ms to 50ms. Adjust some tests accordingly.

Signed-off-by: Cesar Talledo <[email protected]>
  • Loading branch information
ctalledo committed Jun 9, 2023
1 parent 477600f commit 489ef96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sysmgr/containerdVolMgr.bats
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function teardown() {
docker rm "$syscont"

# wait for sysbox to detect the container removal
sleep 1
sleep 0.5

run cat "/var/lib/sysbox/containerd/$sc_id/test"
[ "$status" -eq 1 ]
Expand Down
3 changes: 3 additions & 0 deletions tests/sysmgr/dockerVolMgr.bats
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ function teardown() {

docker rm "$SYSCONT_NAME"

# wait for sysbox to detect the container removal
sleep 0.5

run cat "/var/lib/sysbox/docker/$sc_id/test"
[ "$status" -eq 1 ]

Expand Down
3 changes: 3 additions & 0 deletions tests/sysmgr/kubeletVolMgr.bats
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ function teardown() {

docker rm "$SYSCONT_NAME"

# wait for sysbox to detect the container removal
sleep 0.5

run cat "/var/lib/sysbox/kubelet/$sc_id/test"
[ "$status" -eq 1 ]

Expand Down

0 comments on commit 489ef96

Please sign in to comment.