pomerium/databroker
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
..
cache.go move directory providers (#3633) 2022-11-03 11:33:56 -06:00
cache_test.go test: use T.TempDir to create temporary test directory (#3725) 2022-11-08 09:16:32 -07:00
databroker.go atomicutil: use atomicutil.Value wherever possible (#3517) 2022-07-28 15:38:38 -06:00
databroker_test.go move directory providers (#3633) 2022-11-03 11:33:56 -06:00