@@ -611,7 +611,7 @@ func TestPGCoordinator_BidirectionalTunnels(t *testing.T) {
611
611
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
612
612
defer cancel ()
613
613
logger := slogtest .Make (t , nil ).Leveled (slog .LevelDebug )
614
- coordinator , err := tailnet .NewPGCoordV2 (ctx , logger , ps , store )
614
+ coordinator , err := tailnet .NewPGCoord (ctx , logger , ps , store )
615
615
require .NoError (t , err )
616
616
defer coordinator .Close ()
617
617
agpltest .BidirectionalTunnels (ctx , t , coordinator )
@@ -626,7 +626,7 @@ func TestPGCoordinator_GracefulDisconnect(t *testing.T) {
626
626
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
627
627
defer cancel ()
628
628
logger := slogtest .Make (t , nil ).Leveled (slog .LevelDebug )
629
- coordinator , err := tailnet .NewPGCoordV2 (ctx , logger , ps , store )
629
+ coordinator , err := tailnet .NewPGCoord (ctx , logger , ps , store )
630
630
require .NoError (t , err )
631
631
defer coordinator .Close ()
632
632
agpltest .GracefulDisconnectTest (ctx , t , coordinator )
@@ -641,7 +641,7 @@ func TestPGCoordinator_Lost(t *testing.T) {
641
641
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
642
642
defer cancel ()
643
643
logger := slogtest .Make (t , nil ).Leveled (slog .LevelDebug )
644
- coordinator , err := tailnet .NewPGCoordV2 (ctx , logger , ps , store )
644
+ coordinator , err := tailnet .NewPGCoord (ctx , logger , ps , store )
645
645
require .NoError (t , err )
646
646
defer coordinator .Close ()
647
647
agpltest .LostTest (ctx , t , coordinator )
@@ -676,7 +676,7 @@ func newTestConn(ids []uuid.UUID) *testConn {
676
676
return a
677
677
}
678
678
679
- func newTestAgent (t * testing.T , coord agpl.Coordinator , name string , id ... uuid.UUID ) * testConn {
679
+ func newTestAgent (t * testing.T , coord agpl.CoordinatorV1 , name string , id ... uuid.UUID ) * testConn {
680
680
a := newTestConn (id )
681
681
go func () {
682
682
err := coord .ServeAgent (a .serverWS , a .id , name )
@@ -731,7 +731,7 @@ func (c *testConn) waitForClose(ctx context.Context, t *testing.T) {
731
731
}
732
732
}
733
733
734
- func newTestClient (t * testing.T , coord agpl.Coordinator , agentID uuid.UUID , id ... uuid.UUID ) * testConn {
734
+ func newTestClient (t * testing.T , coord agpl.CoordinatorV1 , agentID uuid.UUID , id ... uuid.UUID ) * testConn {
735
735
c := newTestConn (id )
736
736
go func () {
737
737
err := coord .ServeClient (c .serverWS , c .id , agentID )
0 commit comments