-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
triage/supportIndicates an issue that is a support question.Indicates an issue that is a support question.
Description
Hi,
I am trying to test my operator locally but this is the error I am hitting:
$ operator-sdk test local ./test/e2e --up-local --namespace default --go-test-flags "-timeout=20m" --debug --verbose
DEBU[0000] Debug logging is set
INFO[0000] Testing operator locally.
DEBU[0000] Running []string{"go", "test", "-mod=vendor", "./test/e2e/...", "-namespacedMan", "/tmp/empty.yaml122653018", "-globalMan", "/tmp/global-manifest.yaml427276529", "-root", "/path/tom/my/operator", "-timeout=20m", "-singleNamespace", "-parallel=1", "-localOperator"}
go test: mod flag may be set only once
run "go help test" or "go help testflag" for more information
Error: failed to build test binary: (failed to exec []string{"go", "test", "-mod=vendor", "./test/e2e/...", "-namespacedMan", "/tmp/empty.yaml122653018", "-globalMan", "/tmp/global-manifest.yaml427276529", "-root", "//path/tom/my/operator", "-timeout=20m", "-singleNamespace", "-parallel=1", "-localOperator"}: exit status 2)
It does not matter if I set there go-test-flags
or I just omit that completely, error is same.
I am on operator-sdk v0.11.0 and go 1.11.13.
Metadata
Metadata
Assignees
Labels
triage/supportIndicates an issue that is a support question.Indicates an issue that is a support question.