mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-20 09:52:15 +00:00
More linting fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package integration
|
package integration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
@@ -8,7 +9,6 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type AuthWebFlowScenario struct {
|
type AuthWebFlowScenario struct {
|
||||||
@@ -141,11 +141,10 @@ func (s *AuthWebFlowScenario) runHeadscaleRegister(namespaceStr string, loginURL
|
|||||||
loginURL.Host = fmt.Sprintf("%s:8080", s.Headscale().GetIP())
|
loginURL.Host = fmt.Sprintf("%s:8080", s.Headscale().GetIP())
|
||||||
loginURL.Scheme = "http"
|
loginURL.Scheme = "http"
|
||||||
|
|
||||||
httpClient := &http.Client{
|
httpClient := &http.Client{}
|
||||||
Timeout: time.Second * 10,
|
ctx := context.Background()
|
||||||
}
|
req, _ := http.NewRequestWithContext(ctx, http.MethodGet, loginURL.String(), nil)
|
||||||
|
resp, err := httpClient.Do(req)
|
||||||
resp, err := httpClient.Get(loginURL.String())
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user