pomerium/internal/autocert
Eng Zer Jun 45ce6f693a
test: use T.TempDir to create temporary test directory (#3725)
Prior to this commit, temporary directories in tests were created using
`filepath.Join` and `os.MkdirAll`.

This commit replaces `os.MkdirAll` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-11-08 09:16:32 -07:00
..
manager.go autocert: add support for ACME TLS-ALPN (#3590) 2022-08-29 16:19:20 -06:00
manager_test.go test: use T.TempDir to create temporary test directory (#3725) 2022-11-08 09:16:32 -07:00
ocsp.go ocsp: reload on ocsp response changes (#2286) 2021-06-11 15:58:01 -04:00
ocsp_test.go ocsp: reload on ocsp response changes (#2286) 2021-06-11 15:58:01 -04:00