(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2)
| 72 | } |
| 73 | |
| 74 | func ReadyForHandshakeNoPermissionTest(ctx context.Context, t *testing.T, coordinator tailnet.CoordinatorV2) { |
| 75 | p1 := NewPeer(ctx, t, coordinator, "p1") |
| 76 | defer p1.Close(ctx) |
| 77 | p2 := NewPeer(ctx, t, coordinator, "p2") |
| 78 | defer p2.Close(ctx) |
| 79 | p1.UpdateDERP(1) |
| 80 | p2.UpdateDERP(2) |
| 81 | |
| 82 | p2.ReadyForHandshake(p1.ID) |
| 83 | p2.AssertEventuallyGetsError(fmt.Sprintf("you do not share a tunnel with %q", p1.ID.String())) |
| 84 | } |