Skip to content

fix(tls): use temp dir for keylog test path#8010

Merged
yongtang merged 1 commit into
coredns:masterfrom
thevilledev:fix/tls-test-leftover-files
Apr 4, 2026
Merged

fix(tls): use temp dir for keylog test path#8010
yongtang merged 1 commit into
coredns:masterfrom
thevilledev:fix/tls-test-leftover-files

Conversation

@thevilledev

Copy link
Copy Markdown
Collaborator

1. Why is this pull request needed and what does it do?

The keylog test case in TestTLS used a relative path, causing a tls.log file to be left in the source tree after each test run. Use t.TempDir() so the file is automatically cleaned up.

2. Which issues (if any) are related?

Missed from #7537

3. Which documentation changes (if any) need to be made?

None.

4. Does this introduce a backward incompatible change or deprecation?

No.

@thevilledev thevilledev requested a review from yongtang April 4, 2026 15:55
@thevilledev

Copy link
Copy Markdown
Collaborator Author

I'll rebase + mark ready for review once #8009 lands in master. CI fails until it's merged.

The keylog test case in TestTLS used a relative path,
causing a tls.log file to be left in the source tree
after each test run. Use t.TempDir() so the file is
automatically cleaned up.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
@thevilledev thevilledev force-pushed the fix/tls-test-leftover-files branch from 32b2ec5 to 24c93fc Compare April 4, 2026 17:42
@thevilledev thevilledev marked this pull request as ready for review April 4, 2026 18:06
@yongtang yongtang merged commit 5643d41 into coredns:master Apr 4, 2026
13 checks passed
Filippo125 pushed a commit to Filippo125/coredns that referenced this pull request Apr 10, 2026
Signed-off-by: Filippo <filippo.ferrazini@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants