Skip to content

Commit d19cb1e

Browse files
morambrocopybara-github
authored andcommitted
Remove unnecessary initialization of SSL_CERT_FILE and cacerts
The variable and flag were initialized with a non-existing path. PiperOrigin-RevId: 598571167 Change-Id: I2d133d6f317660b4395f179be99035e41a4e377d
1 parent 7482a1e commit d19cb1e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

integration/gcpkms/gcp_kms_integration_test.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"path/filepath"
2424
"testing"
2525

26-
"flag"
26+
// Placeholder for internal flag import.
2727
// context is used to cancel outstanding requests
2828
"google.golang.org/api/option"
2929
"github.com/tink-crypto/tink-go/v2/aead"
@@ -38,11 +38,7 @@ var (
3838
credFile = "testdata/gcp/credential.json"
3939
)
4040

41-
func init() {
42-
certPath := filepath.Join(os.Getenv("TEST_SRCDIR"), "tink_base/roots.pem")
43-
flag.Set("cacerts", certPath)
44-
os.Setenv("SSL_CERT_FILE", certPath)
45-
}
41+
// Placeholder for internal initialization.
4642

4743
func TestGetAeadWithEnvelopeAead(t *testing.T) {
4844
srcDir, ok := os.LookupEnv("TEST_SRCDIR")

0 commit comments

Comments
 (0)