Skip to content

Commit

Permalink
Fixup after ts interface
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby committed Oct 23, 2022
1 parent d706c35 commit 53b4bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/general_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestPingAllByHostname(t *testing.T) {
t.Errorf("failed to create headscale environment: %s", err)
}

var allClients []*tsic.TailscaleInContainer
var allClients []TailscaleClient
var allHostnames []string

for namespace := range spec {
Expand All @@ -114,7 +114,7 @@ func TestPingAllByHostname(t *testing.T) {
for _, client := range allClients {
fqdn, err := client.FQDN()
if err != nil {
t.Errorf("failed to get fqdn of client %s: %s", client.Hostname, err)
t.Errorf("failed to get fqdn of client %s: %s", client.Hostname(), err)
}

allHostnames = append(allHostnames, fqdn)
Expand All @@ -126,7 +126,7 @@ func TestPingAllByHostname(t *testing.T) {
for _, hostname := range allHostnames {
err := client.Ping(hostname)
if err != nil {
t.Errorf("failed to ping %s from %s: %s", hostname, client.Hostname, err)
t.Errorf("failed to ping %s from %s: %s", hostname, client.Hostname(), err)
} else {
success++
}
Expand Down
1 change: 1 addition & 0 deletions integration/tailscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type TailscaleClient interface {
Version() string
Up(loginServer, authKey string) error
IPs() ([]netip.Addr, error)
FQDN() (string, error)
Status() (*ipnstate.Status, error)
WaitForPeers(expected int) error
Ping(hostnameOrIP string) error
Expand Down

0 comments on commit 53b4bb2

Please sign in to comment.