From 1292729d4222c8d78bd6f1ef7d70d55d97c429f7 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 2 Jul 2024 16:26:41 -0400 Subject: [PATCH] Fix for typecheck doesn't notice compile errors in test files - ensure we add all the staging modules so the _test files in there are "loaded" - use build tags to skip tests that fail to build in specific os/arch pairs Signed-off-by: Davanum Srinivas Co-Authored-By: Tim Hockin Kubernetes-commit: c230a45383c372e3861de3d4854cdfe28f4c482f --- pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go | 3 +++ .../value/encrypt/envelope/kmsv2/grpc_service_unix_test.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go b/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go index 57f957a1b..4ce598bac 100644 --- a/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go +++ b/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go @@ -1,3 +1,6 @@ +//go:build !windows +// +build !windows + /* Copyright 2022 The Kubernetes Authors. diff --git a/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go b/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go index a1ae59bac..c0a78d993 100644 --- a/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go +++ b/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go @@ -1,3 +1,6 @@ +//go:build !windows +// +build !windows + /* Copyright 2022 The Kubernetes Authors.