From b0814ee3ff4fa97197a9ac5667c0119f5030dae8 Mon Sep 17 00:00:00 2001 From: chaitalisg Date: Tue, 16 Jul 2024 13:25:24 -0700 Subject: [PATCH] fix(test): allow delete random snapshot action (#3987) Addresses failure introduced in #3963 Change: allow `delete-random-snapID` action in the function `tryDeleteAction`. Test: Manual local run was successful. --- tests/robustness/multiclient_test/multiclient_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/robustness/multiclient_test/multiclient_test.go b/tests/robustness/multiclient_test/multiclient_test.go index a8a569c04..31136f849 100644 --- a/tests/robustness/multiclient_test/multiclient_test.go +++ b/tests/robustness/multiclient_test/multiclient_test.go @@ -239,13 +239,14 @@ func tryRandomAction(ctx context.Context, t *testing.T, opts engine.ActionOpts) } // tryDeleteAction runs the given delete action, -// delete-files or delete-random-subdirectory +// delete-files or delete-random-subdirectory or delete-random-snapID // with options and masks no-op errors, and asserts when called for any other action. func tryDeleteAction(ctx context.Context, t *testing.T, action engine.ActionKey, actionOpts map[string]string) { t.Helper() eligibleActionsList := []engine.ActionKey{ engine.DeleteDirectoryContentsActionKey, engine.DeleteRandomSubdirectoryActionKey, + engine.DeleteRandomSnapshotActionKey, } require.Contains(t, eligibleActionsList, action)