aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh/client_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-25 14:14:02 +0700
committerShulhan <ms@kilabit.info>2023-12-25 14:14:02 +0700
commit4907d9403e71d42e70a7aa1ff76b792ed2fba2f7 (patch)
tree5ad17ac27cc71b3234794cc110a1ad1a3c24fe33 /lib/ssh/client_test.go
parent07165e72daa4d9d283ac049b06e5634f4d2f32e6 (diff)
downloadpakakeh.go-4907d9403e71d42e70a7aa1ff76b792ed2fba2f7.tar.xz
ssh/config: add parameter Config to NewSection
This changes how the Section and parser initialized. Previously, the Config depends on the parser to set the workDir and homeDir and Section depends on Config only on Get; now its the other way around, from top to bottom. Config initialized first, then parser initialized using Config instance, and then Section initialized also using Config instance.
Diffstat (limited to 'lib/ssh/client_test.go')
-rw-r--r--lib/ssh/client_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/client_test.go b/lib/ssh/client_test.go
index 062a32cc..feead9cc 100644
--- a/lib/ssh/client_test.go
+++ b/lib/ssh/client_test.go
@@ -20,7 +20,7 @@ func TestNewClient_KeyError_notExist(t *testing.T) {
t.Skip(`Require active SSH server`)
var (
- section = config.NewSection(`localhost`)
+ section = config.NewSection(nil, `localhost`)
wd string
err error