diff options
author | Stan Hu <stanhu@gmail.com> | 2021-07-26 16:22:34 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2021-07-26 16:22:34 -0700 |
commit | 4e81d534c2f2c87ebdfeafb1f8338b17ffdfc708 (patch) | |
tree | a8084b9c6e3baf279eed8b27999e6813b0407794 /internal/sshd/sshd_test.go | |
parent | 0997266fc03b0851e4ef52d25dbe8b44bdba7de7 (diff) | |
download | gitlab-shell-4e81d534c2f2c87ebdfeafb1f8338b17ffdfc708.tar.gz |
Fix formatting via make fmt
Diffstat (limited to 'internal/sshd/sshd_test.go')
-rw-r--r-- | internal/sshd/sshd_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/sshd/sshd_test.go b/internal/sshd/sshd_test.go index 9187140..e5f6111 100644 --- a/internal/sshd/sshd_test.go +++ b/internal/sshd/sshd_test.go @@ -1,10 +1,10 @@ package sshd import ( - "testing" "context" - "path" "net/http/httptest" + "path" + "testing" "time" "github.com/stretchr/testify/require" @@ -75,7 +75,7 @@ func setupServer(t *testing.T) *Server { url := testserver.StartSocketHttpServer(t, []testserver.TestRequestHandler{}) srvCfg := config.ServerConfig{ - Listen: serverUrl, + Listen: serverUrl, HostKeyFiles: []string{path.Join(testhelper.TestRoot, "certs/valid/server.key")}, } @@ -85,7 +85,7 @@ func setupServer(t *testing.T) *Server { } func verifyStatus(t *testing.T, s *Server, st status) { - for i := 5; i < 500; i+=50 { + for i := 5; i < 500; i += 50 { if s.getStatus() == st { break } |