chore: add test for coord rolling restart (#14680)

Closes https://github.com/coder/team-coconut/issues/50

---------

Co-authored-by: Ethan Dickson <ethan@coder.com>
This commit is contained in:
Dean Sheather
2024-11-20 18:04:33 +11:00
committed by GitHub
co-authored by Ethan Dickson
parent 9e63caf593
commit fbe2fa66f5
4 changed files with 348 additions and 6 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ func NewServerTailnet(
// given in this callback, it's only valid while connecting.
if derpServer != nil {
conn.SetDERPRegionDialer(func(_ context.Context, region *tailcfg.DERPRegion) net.Conn {
if !region.EmbeddedRelay {
// Don't set up the embedded relay if we're shutting down
if !region.EmbeddedRelay || ctx.Err() != nil {
return nil
}
logger.Debug(ctx, "connecting to embedded DERP via in-memory pipe")