Skip to content

Commit

Permalink
use context.Background() to let cleanup be unaffected by timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Aug 28, 2024
1 parent 6b9cf7b commit ec1ed4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/regression/regression_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

///go:build e2e
//go:build e2e

package regression

Expand Down Expand Up @@ -82,6 +82,7 @@ func TestRegression(t *testing.T) {

t.Cleanup(func() {
// delete the deployment
ctx = context.Background()
require.NoError(ct.Kubeclient.Client.AppsV1().Deployments(ct.Namespace).Delete(ctx, deploymentName, metav1.DeleteOptions{}))
})

Expand Down

0 comments on commit ec1ed4a

Please sign in to comment.