Skip to content

Commit

Permalink
Do not override global testData in e2e tests (#1955)
Browse files Browse the repository at this point in the history
Otherwise a setup failure would panic and terminate all tests.
  • Loading branch information
tnqn authored Mar 16, 2021
1 parent e80ab3b commit 020946f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/e2e/nodeportlocal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ func validatePortInRange(t *testing.T, nplAnnotations []k8s.NPLAnnotation, start

func TestNPLAddPod(t *testing.T) {
skipIfNotIPv4Cluster(t)
var err error
testData, err = setupTest(t)
testData, err := setupTest(t)
if err != nil {
t.Fatalf("Error when setting up test: %v", err)
}
Expand Down

0 comments on commit 020946f

Please sign in to comment.