mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
feat: embedded derp
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/jsiebens/ionscale/tests/sc"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNetCheckWithEmbeddedDERP(t *testing.T) {
|
||||
sc.Run(t, func(s *sc.Scenario) {
|
||||
tailnet := s.CreateTailnet()
|
||||
authKey := s.CreateAuthKey(tailnet.Id, false)
|
||||
|
||||
tsNode := s.NewTailscaleNode()
|
||||
|
||||
require.NoError(t, tsNode.Up(authKey))
|
||||
|
||||
report, err := tsNode.NetCheck()
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 1000, report.PreferredDERP)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user