Skip to content

Commit

Permalink
tests: fix TestDERPVerifyEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Nov 16, 2024
1 parent dfebd17 commit b39925f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration/derp_verify_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func TestDERPVerifyEndpoint(t *testing.T) {

scenario, err := NewScenario(dockertestMaxWait())
assertNoErr(t, err)
defer scenario.Shutdown()
defer scenario.ShutdownAssertNoPanics(t)

spec := map[string]int{
"user1": 10,
"user1": len(MustTestVersions),
}

derper, err := scenario.CreateDERPServer("head",
Expand Down
3 changes: 2 additions & 1 deletion integration/hsic/hsic.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/juanfont/headscale/integration/integrationutil"
"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"
"gopkg.in/yaml.v3"
"tailscale.com/tailcfg"
)

Expand Down Expand Up @@ -221,7 +222,7 @@ func WithEmbeddedDERPServerOnly() Option {
// DERP server only.
func WithDERPConfig(derpMap tailcfg.DERPMap) Option {
return func(hsic *HeadscaleInContainer) {
contents, err := json.Marshal(derpMap)
contents, err := yaml.Marshal(derpMap)
if err != nil {
log.Fatalf("failed to marshal DERP map: %s", err)

Expand Down

0 comments on commit b39925f

Please sign in to comment.