summaryrefslogtreecommitdiff
path: root/internal/ssh/client
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-03 15:38:07 +0200
committerPaul Buetow <paul@buetow.org>2026-03-03 15:38:07 +0200
commit56abee605f02f6975d68f094a13eca2890c31380 (patch)
treeae08ad18a90f2a056baedfb54945ca0e38d8a96f /internal/ssh/client
parent46d4917ea0eaa587e87602200fb6843776cc62a5 (diff)
Stabilize integration-mode auth tests and concurrent dcat reads
Diffstat (limited to 'internal/ssh/client')
-rw-r--r--internal/ssh/client/authmethods_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/ssh/client/authmethods_test.go b/internal/ssh/client/authmethods_test.go
index e1e92b0..c6715fa 100644
--- a/internal/ssh/client/authmethods_test.go
+++ b/internal/ssh/client/authmethods_test.go
@@ -49,6 +49,8 @@ func (s *mockSigner) Sign(_ io.Reader, _ []byte) (*gossh.Signature, error) {
func TestCollectKnownHostsAuthMethodsOrder(t *testing.T) {
homeDir := "/tmp/dtail-auth-order"
t.Setenv("HOME", homeDir)
+ // Keep this unit test deterministic regardless of integration-mode env.
+ t.Setenv("DTAIL_INTEGRATION_TEST_RUN_MODE", "")
originalPrivateKeySigner := privateKeySigner
originalAgentSigners := agentSigners
@@ -107,6 +109,8 @@ func TestCollectKnownHostsAuthMethodsOrder(t *testing.T) {
func TestCollectKnownHostsAuthMethodsSkipsDuplicateDefaultPath(t *testing.T) {
homeDir := "/tmp/dtail-auth-dedupe"
t.Setenv("HOME", homeDir)
+ // Keep this unit test deterministic regardless of integration-mode env.
+ t.Setenv("DTAIL_INTEGRATION_TEST_RUN_MODE", "")
originalPrivateKeySigner := privateKeySigner
originalAgentSigners := agentSigners