aboutsummaryrefslogtreecommitdiff
path: root/config_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-05-15 23:23:41 +0700
committerShulhan <ms@kilabit.info>2023-05-15 23:23:41 +0700
commitbb1160d3f13514bebcb81e89c082198c5278b89e (patch)
treec46307c2c252c5dac2b8523f4be4cb019c3d550d /config_test.go
parentf59e59c029a0332e7fd63e0cd5ea7fb30eb7d991 (diff)
downloadgotp-bb1160d3f13514bebcb81e89c082198c5278b89e.tar.xz
all: load the private key in loadConfig
This changes require the loadPrivateKey method detached from Cli and become function.
Diffstat (limited to 'config_test.go')
-rw-r--r--config_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config_test.go b/config_test.go
index c0b1993..e27172d 100644
--- a/config_test.go
+++ b/config_test.go
@@ -52,6 +52,8 @@ func TestNewConfig(t *testing.T) {
continue
}
+ gotConfig.privateKey = nil
+
test.Assert(t, `Issuer`, c.expConfig, gotConfig)
}
}