mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Enable go race detection for bazel tests.
There are a couple tests that need to run without race detection enabled. See issue 39649 for details.
This commit is contained in:
@@ -17,3 +17,6 @@ build --sandbox_fake_username
|
||||
# TODO(ixdy): Remove this default once rules_go is bumped.
|
||||
# Ref kubernetes/kubernetes#52677
|
||||
build --incompatible_comprehension_variables_do_not_leak=false
|
||||
|
||||
# Enable go race detection.
|
||||
test --features=race
|
||||
|
@@ -109,6 +109,7 @@ go_test(
|
||||
"master_openapi_test.go",
|
||||
"master_test.go",
|
||||
],
|
||||
features = ["-race"],
|
||||
library = ":go_default_library",
|
||||
deps = [
|
||||
"//pkg/api:go_default_library",
|
||||
|
@@ -22,6 +22,7 @@ go_test(
|
||||
"store_test.go",
|
||||
"undelta_store_test.go",
|
||||
],
|
||||
features = ["-race"],
|
||||
library = ":go_default_library",
|
||||
deps = [
|
||||
"//vendor/github.com/google/gofuzz:go_default_library",
|
||||
|
Reference in New Issue
Block a user