| From c3f90c5d3f141de3df667560bc01e191743ce4bf Mon Sep 17 00:00:00 2001 |
| From: Chenglong Tang <chenglongtang@google.com> |
| Date: Tue, 10 Dec 2024 19:30:29 +0000 |
| Subject: [PATCH] Add sleep time in TestDiff to fully start running the |
| container and execute the bash command to create /foo/bar before checking the |
| container diff. |
| |
| --- |
| integration/container/diff_test.go | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/integration/container/diff_test.go b/integration/container/diff_test.go |
| index 29068c2513..4855e2d1f3 100644 |
| --- a/integration/container/diff_test.go |
| +++ b/integration/container/diff_test.go |
| @@ -17,6 +17,7 @@ func TestDiff(t *testing.T) { |
| apiClient := testEnv.APIClient() |
| |
| cID := container.Run(ctx, t, apiClient, container.WithCmd("sh", "-c", `mkdir /foo; echo xyzzy > /foo/bar`)) |
| + time.Sleep(5 * time.Second) |
| |
| expected := []containertypes.FilesystemChange{ |
| {Kind: containertypes.ChangeAdd, Path: "/foo"}, |