mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 22:47:30 +00:00
tstest/integration/vms: use one testcontrol instance per VM (#2437)
This paves the way for future MagicDNS tests. Signed-off-by: Christine Dodrill <xe@tailscale.com>
This commit is contained in:

committed by
GitHub

parent
171ec9f8f4
commit
391207bbcf
@@ -39,7 +39,7 @@ func retry(t *testing.T, fn func() error) {
|
||||
t.Fatalf("tried %d times, got: %v", tries, err)
|
||||
}
|
||||
|
||||
func (h Harness) testPing(t *testing.T, ipAddr netaddr.IP, cli *ssh.Client) {
|
||||
func (h *Harness) testPing(t *testing.T, ipAddr netaddr.IP, cli *ssh.Client) {
|
||||
var outp []byte
|
||||
var err error
|
||||
retry(t, func() error {
|
||||
@@ -83,7 +83,7 @@ func getSession(t *testing.T, cli *ssh.Client) *ssh.Session {
|
||||
return sess
|
||||
}
|
||||
|
||||
func (h Harness) testOutgoingTCP(t *testing.T, ipAddr netaddr.IP, cli *ssh.Client) {
|
||||
func (h *Harness) testOutgoingTCP(t *testing.T, ipAddr netaddr.IP, cli *ssh.Client) {
|
||||
const sendmsg = "this is a message that curl won't print"
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
s := &http.Server{
|
||||
|
Reference in New Issue
Block a user