Skip to content

feat: HA tailnet coordinator #4170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
remove printlns
  • Loading branch information
coadler committed Sep 23, 2022
commit bd82c5e36c79c080954b38255c8d198a0f0b925f
7 changes: 0 additions & 7 deletions enterprise/tailnet/coordinator_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package tailnet_test

import (
"fmt"
"net"
"testing"

Expand Down Expand Up @@ -182,9 +181,7 @@ func TestCoordinatorHA(t *testing.T) {
defer agentWS.Close()
agentNodeChan := make(chan []*agpl.Node)
sendAgentNode, agentErrChan := agpl.ServeCoordinator(agentWS, func(nodes []*agpl.Node) error {
fmt.Println("got agent node")
agentNodeChan <- nodes
fmt.Println("sent agent node")
return nil
})
agentID := uuid.New()
Expand All @@ -204,9 +201,7 @@ func TestCoordinatorHA(t *testing.T) {
defer clientServerWS.Close()
clientNodeChan := make(chan []*agpl.Node)
sendClientNode, clientErrChan := agpl.ServeCoordinator(clientWS, func(nodes []*agpl.Node) error {
fmt.Println("got client node")
clientNodeChan <- nodes
fmt.Println("sent client node")
return nil
})
clientID := uuid.New()
Expand Down Expand Up @@ -239,9 +234,7 @@ func TestCoordinatorHA(t *testing.T) {
defer agentWS.Close()
agentNodeChan = make(chan []*agpl.Node)
_, agentErrChan = agpl.ServeCoordinator(agentWS, func(nodes []*agpl.Node) error {
fmt.Println("got agent node")
agentNodeChan <- nodes
fmt.Println("sent agent node")
return nil
})
closeAgentChan = make(chan struct{})
Expand Down