Skip to content

Commit

Permalink
database: one more fix for tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed May 10, 2024
1 parent ac83cee commit e8a5e26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions database/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import (
)

func Test_LoadClientCertsFromConfig(t *testing.T) {
certFilepath := filepath.Join("/", "tmp", "client_cert.pem")
keyFilepath := filepath.Join("/", "tmp", "client_cert_private_key.pem")
dir := t.TempDir()

certFilepath := filepath.Join(dir, "client_cert.pem")
keyFilepath := filepath.Join(dir, "client_cert_private_key.pem")

err := testcerts.GenerateCertsToFile(certFilepath, keyFilepath)
require.Nil(t, err)
Expand Down

0 comments on commit e8a5e26

Please sign in to comment.