Skip to content

Commit

Permalink
ci(test): increase timeout and add -race flag (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
padlar authored Jan 19, 2023
1 parent d7d049d commit c3908d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ vet: ## Run go vet against code.

.PHONY: test
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile cover.out
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -race ./... -coverprofile cover.out

test-reports: test ## Run tests and generate reports (no reports for now)

Expand Down
2 changes: 1 addition & 1 deletion internal/controller/stas/scan_job_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

var _ = Describe("Scan Job controller", func() {
const (
timeout = 20 * time.Second
timeout = 20 * time.Minute
interval = 100 * time.Millisecond
)

Expand Down
2 changes: 1 addition & 1 deletion internal/controller/stas/workload_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type TestWorkloadFactory func(namespacedName types.NamespacedName, labels map[st

var _ = Describe("Workload controller", func() {
const (
timeout = 20 * time.Second
timeout = 20 * time.Minute
interval = 100 * time.Millisecond
)

Expand Down

0 comments on commit c3908d8

Please sign in to comment.