Skip to content

Commit 8a50ec8

Browse files
committed
feat(tests): update patch type and improve test execution consistency
Signed-off-by: l1b0k <[email protected]>
1 parent 238d419 commit 8a50ec8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ datapath-test: ## Run datapath tests using the Makefile in tests/kind directory.
6767

6868
.PHONY: e2e-test
6969
e2e-test: ## Run e2e functional tests (excludes upgrade tests).
70-
go test -v -timeout 60m -tags e2e ./tests -run 'Test[^U].*' $(TESTARGS)
70+
go test -v -count=1 -timeout 60m -tags e2e ./tests -run 'Test[^U].*' $(TESTARGS)
7171

7272
.PHONY: e2e-upgrade-test
7373
e2e-upgrade-test: ## Run e2e upgrade tests only.
74-
go test -v -timeout 60m -tags e2e ./tests -run 'TestUpgrade' $(TESTARGS)
74+
go test -v -count=1 -timeout 60m -tags e2e ./tests -run 'TestUpgrade' $(TESTARGS)
7575

7676
.PHONY: e2e-test-all
7777
e2e-test-all: ## Run all e2e tests (functional + upgrade).
78-
go test -v -timeout 60m -tags e2e ./tests $(TESTARGS)
78+
go test -v -count=1 -timeout 60m -tags e2e ./tests $(TESTARGS)
7979

8080
##@ Build
8181

tests/idle_ip_reclaim_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,5 +612,5 @@ func triggerNode(ctx context.Context, config *envconf.Config, t *testing.T, node
612612
},
613613
},
614614
})
615-
return config.Client().Resources().Patch(ctx, node, k8s.Patch{PatchType: types.StrategicMergePatchType, Data: mergePatch})
615+
return config.Client().Resources().Patch(ctx, node, k8s.Patch{PatchType: types.MergePatchType, Data: mergePatch})
616616
}

0 commit comments

Comments
 (0)