Skip to content

Commit

Permalink
fix: Flakey TestDataTransformationArtifactRepositoryRef (#5226)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Behar <simbeh7@gmail.com>
  • Loading branch information
simster7 authored Feb 26, 2021
1 parent 6412bc6 commit fb19af1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions test/e2e/fixtures/e2e_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ func (s *E2ESuite) BeforeTest(string, string) {
s.DeleteResources()
}

var (
foreground = metav1.DeletePropagationForeground
background = metav1.DeletePropagationBackground
)
var foreground = metav1.DeletePropagationForeground

func (s *E2ESuite) DeleteResources() {
hasTestLabel := metav1.ListOptions{LabelSelector: Label}
Expand All @@ -95,7 +92,7 @@ func (s *E2ESuite) DeleteResources() {

ctx := context.Background()
for _, r := range resources {
err := s.dynamicFor(r).DeleteCollection(ctx, metav1.DeleteOptions{PropagationPolicy: &background}, hasTestLabel)
err := s.dynamicFor(r).DeleteCollection(ctx, metav1.DeleteOptions{PropagationPolicy: &foreground}, hasTestLabel)
s.CheckError(err)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: data-transformation
name: data-transformation-artifact-repository-ref
labels:
argo-e2e: "true"
spec:
Expand Down

0 comments on commit fb19af1

Please sign in to comment.