From 68fbd1a6b543687f8a5a4e17ba857d82fc9dd25e Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 20 Dec 2024 01:26:18 +0000 Subject: [PATCH] Fix snapshot flake Avoid "snapshot save already in progress" flake when snapshot reconcile from previous save is still in progress. Signed-off-by: Brad Davidson --- tests/e2e/s3/s3_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/s3/s3_test.go b/tests/e2e/s3/s3_test.go index b61824525934..29c9d43cad0d 100644 --- a/tests/e2e/s3/s3_test.go +++ b/tests/e2e/s3/s3_test.go @@ -149,8 +149,10 @@ var _ = Describe("Verify Create", Ordered, func() { It("prunes s3 snapshots", func() { _, err := e2e.RunCmdOnNode("k3s etcd-snapshot save", serverNodeNames[0]) Expect(err).NotTo(HaveOccurred()) + time.Sleep(time.Second) _, err = e2e.RunCmdOnNode("k3s etcd-snapshot save", serverNodeNames[0]) Expect(err).NotTo(HaveOccurred()) + time.Sleep(time.Second) res, err := e2e.RunCmdOnNode("k3s etcd-snapshot prune", serverNodeNames[0]) Expect(err).NotTo(HaveOccurred()) // There should now be 4 on-demand snapshots - 2 local, and 2 on s3