mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-11 12:18:59 +00:00
test(git): isolate ssh tmpfile mismatch check
This commit is contained in:
1 parent
20f7dac7a9
commit
e05eec55e8
1 file changed
+1
-2
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user