diff --git a/staging/src/k8s.io/client-go/tools/cache/BUILD b/staging/src/k8s.io/client-go/tools/cache/BUILD index 888eb267008..339bfab8f88 100644 --- a/staging/src/k8s.io/client-go/tools/cache/BUILD +++ b/staging/src/k8s.io/client-go/tools/cache/BUILD @@ -15,6 +15,7 @@ go_test( "fifo_test.go", "heap_test.go", "index_test.go", + "main_test.go", "mutation_detector_test.go", "processor_listener_test.go", "reflector_test.go", diff --git a/staging/src/k8s.io/client-go/tools/cache/main_test.go b/staging/src/k8s.io/client-go/tools/cache/main_test.go new file mode 100644 index 00000000000..16933a4b530 --- /dev/null +++ b/staging/src/k8s.io/client-go/tools/cache/main_test.go @@ -0,0 +1,29 @@ +/* +Copyright 2018 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package cache + +import ( + "math/rand" + "os" + "testing" + "time" +) + +func TestMain(m *testing.M) { + rand.Seed(time.Now().UnixNano()) + os.Exit(m.Run()) +} diff --git a/staging/src/k8s.io/client-go/tools/record/BUILD b/staging/src/k8s.io/client-go/tools/record/BUILD index 3686363a83b..8d7a10aa4ae 100644 --- a/staging/src/k8s.io/client-go/tools/record/BUILD +++ b/staging/src/k8s.io/client-go/tools/record/BUILD @@ -35,6 +35,7 @@ go_test( srcs = [ "event_test.go", "events_cache_test.go", + "main_test.go", ], embed = [":go_default_library"], deps = [ diff --git a/staging/src/k8s.io/legacy-cloud-providers/azure/BUILD b/staging/src/k8s.io/legacy-cloud-providers/azure/BUILD index 1a315a5410f..7f950eb403e 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/azure/BUILD +++ b/staging/src/k8s.io/legacy-cloud-providers/azure/BUILD @@ -93,6 +93,7 @@ go_test( "azure_vmss_test.go", "azure_wrap_test.go", "azure_zones_test.go", + "main_test.go", ], embed = [":go_default_library"], deps = [ diff --git a/staging/src/k8s.io/legacy-cloud-providers/azure/main_test.go b/staging/src/k8s.io/legacy-cloud-providers/azure/main_test.go new file mode 100644 index 00000000000..eb3161f04fa --- /dev/null +++ b/staging/src/k8s.io/legacy-cloud-providers/azure/main_test.go @@ -0,0 +1,29 @@ +/* +Copyright 2018 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package azure + +import ( + "math/rand" + "os" + "testing" + "time" +) + +func TestMain(m *testing.M) { + rand.Seed(time.Now().UnixNano()) + os.Exit(m.Run()) +}