Skip to content

Commit

Permalink
Improve test reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
Gchbg committed May 6, 2024
1 parent a8b99b4 commit dcb7ebd
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 126 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ vet: ## Run go vet against code.

.PHONY: test
test: manifests generate fmt vet ## Run tests.
@go run github.com/onsi/ginkgo/v2/ginkgo -r --race --randomize-suites --randomize-all --keep-going --timeout=9223372036s
@go run github.com/onsi/ginkgo/v2/ginkgo -r --race --randomize-suites --keep-going --randomize-all --repeat=1

.PHONY: lint
lint: ## Run golangci-lint linter & yamllint.
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/machine_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import (
. "github.com/onsi/ginkgo/v2"
)

var _ = Describe("Machine Controller", func() {
var _ = Describe("Machine Controller", Serial, func() {
})
2 changes: 1 addition & 1 deletion internal/controller/machineclaim_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
metalv1alpha1 "github.com/ironcore-dev/metal/api/v1alpha1"
)

var _ = Describe("MachineClaim Controller", func() {
var _ = Describe("MachineClaim Controller", Serial, func() {
var ns *v1.Namespace

BeforeEach(func(ctx SpecContext) {
Expand Down
Loading

0 comments on commit dcb7ebd

Please sign in to comment.