golangci-lint --fix
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
4cb7d63e8b
commit
36ad0003a9
4 changed files with 41 additions and 34 deletions
|
@ -15,8 +15,10 @@ import (
|
|||
"github.com/ory/dockertest/v3"
|
||||
)
|
||||
|
||||
const hsicHashLength = 6
|
||||
const dockerContextPath = "../."
|
||||
const (
|
||||
hsicHashLength = 6
|
||||
dockerContextPath = "../."
|
||||
)
|
||||
|
||||
var errHeadscaleStatusCodeNotOk = errors.New("headscale status code not ok")
|
||||
|
||||
|
@ -32,7 +34,8 @@ type HeadscaleInContainer struct {
|
|||
func New(
|
||||
pool *dockertest.Pool,
|
||||
port int,
|
||||
network *dockertest.Network) (*HeadscaleInContainer, error) {
|
||||
network *dockertest.Network,
|
||||
) (*HeadscaleInContainer, error) {
|
||||
hash, err := headscale.GenerateRandomStringDNSSafe(hsicHashLength)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue