test(git): isolate ssh tmpfile mismatch check

This commit is contained in:
viettranx committed 2026-06-03 21:23:06 +07:00
1 parent 20f7dac7a9
commit e05eec55e8
1 file changed
+1 -2
+1 -2
View File
@@ -160,8 +160,7 @@ func TestGitAdapter_SSH_CleanupOnExecFailure(t *testing.T) {
// TestGitAdapter_SSH_HostMismatch_NoTmpfile: rejected host mismatch must
// NOT leave an orphaned tmpfile in os.TempDir().
func TestGitAdapter_SSH_HostMismatch_NoTmpfile(t *testing.T) {
t.Parallel()
t.Setenv("TMPDIR", t.TempDir())
cred := sshCredFor(t, "github.com")
adapter := tools.AdapterFor("git")