aboutsummaryrefslogtreecommitdiff
path: root/awwan_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-10 03:23:02 +0700
committerShulhan <ms@kilabit.info>2023-12-14 20:23:47 +0700
commitf1bcd6e27e9cbf541b9f6d76944bb491aede370a (patch)
tree7349319155d7f8321afc9df08c3ed4ef71bbfcea /awwan_test.go
parent87b79dbd1da7acc73456b3fbfe59a40b59bf116f (diff)
downloadawwan-f1bcd6e27e9cbf541b9f6d76944bb491aede370a.tar.xz
all: changes based on reports from linter revive
Better to fix and follow the reported warnings rather than adding configuration file to add an exception.
Diffstat (limited to 'awwan_test.go')
-rw-r--r--awwan_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/awwan_test.go b/awwan_test.go
index 2e40a7c..008702c 100644
--- a/awwan_test.go
+++ b/awwan_test.go
@@ -26,17 +26,17 @@ func TestMain(m *testing.M) {
func testInitWorkspace(dir string, awwanKey, awwanPass []byte) {
var (
logp = `testInitWorkspace`
- dirSsh = filepath.Join(dir, defSshDir)
+ dirSSH = filepath.Join(dir, defSSHDir)
)
- var err = os.Mkdir(dirSsh, 0700)
+ var err = os.Mkdir(dirSSH, 0700)
if err != nil {
log.Fatalf(`%s: %s`, logp, err)
}
var file string
if len(awwanKey) != 0 {
- file = filepath.Join(dirSsh, defFilePrivateKey)
+ file = filepath.Join(dirSSH, defFilePrivateKey)
err = os.WriteFile(file, awwanKey, 0600)
if err != nil {
log.Fatalf(`%s: %s`, logp, err)
@@ -44,7 +44,7 @@ func testInitWorkspace(dir string, awwanKey, awwanPass []byte) {
}
if len(awwanPass) != 0 {
- file = filepath.Join(dirSsh, defFilePassphrase)
+ file = filepath.Join(dirSSH, defFilePassphrase)
err = os.WriteFile(file, awwanPass, 0600)
if err != nil {
log.Fatalf(`%s: %s`, logp, err)