From 903648a9de5ccab0e073ad83f1d1e4f620900a12 Mon Sep 17 00:00:00 2001 From: zhzhuang-zju Date: Sat, 27 Jul 2024 17:08:11 +0800 Subject: [PATCH] fix unexpected interference between different e2e use cases Signed-off-by: zhzhuang-zju --- test/e2e/clusterpropagationpolicy_test.go | 3 ++- test/e2e/propagationpolicy_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/e2e/clusterpropagationpolicy_test.go b/test/e2e/clusterpropagationpolicy_test.go index 6e2475d10..f65e5a6df 100644 --- a/test/e2e/clusterpropagationpolicy_test.go +++ b/test/e2e/clusterpropagationpolicy_test.go @@ -547,7 +547,8 @@ var _ = ginkgo.Describe("[AdvancedClusterPropagation] propagation testing", func }) // ImplicitPriority more than one PP matches the object, we should choose the most suitable one. -var _ = ginkgo.Describe("[ImplicitPriority] propagation testing", func() { +// Set it to run sequentially to avoid affecting other test cases. +var _ = framework.SerialDescribe("[ImplicitPriority] propagation testing", func() { ginkgo.Context("priorityMatchName/priorityMatchLabel/priorityMatchAll propagation testing", func() { var priorityMatchName, priorityMatchLabelSelector, priorityMatchAll string var deploymentNamespace, deploymentName string diff --git a/test/e2e/propagationpolicy_test.go b/test/e2e/propagationpolicy_test.go index 48430db5b..285c31638 100644 --- a/test/e2e/propagationpolicy_test.go +++ b/test/e2e/propagationpolicy_test.go @@ -514,7 +514,8 @@ var _ = ginkgo.Describe("[BasicPropagation] propagation testing", func() { }) // ImplicitPriority more than one PP matches the object, we should choose the most suitable one. -var _ = ginkgo.Describe("[ImplicitPriority] propagation testing", func() { +// Set it to run sequentially to avoid affecting other test cases. +var _ = framework.SerialDescribe("[ImplicitPriority] propagation testing", func() { ginkgo.Context("priorityMatchName propagation testing", func() { var policyNamespace, priorityMatchName, priorityMatchLabelSelector, priorityMatchAll string var deploymentNamespace, deploymentName string