fix: check for io.EOF error in derpmap to resolve flake (#14125)

See: https://github.com/coder/coder/actions/runs/10218717887/job/28275465405?pr=14045
This commit is contained in:
Kyle Carberry
2024-08-02 17:08:47 +00:00
committed by GitHub
parent 6e36082b0f
commit e2cec454bc
+3 -1
View File
@@ -267,7 +267,9 @@ func (tac *tailnetAPIConnector) derpMap(client proto.DRPCTailnetClient) error {
if xerrors.Is(err, context.Canceled) || xerrors.Is(err, context.DeadlineExceeded) {
return nil
}
tac.logger.Error(tac.ctx, "error receiving DERP Map", slog.Error(err))
if !xerrors.Is(err, io.EOF) {
tac.logger.Error(tac.ctx, "error receiving DERP Map", slog.Error(err))
}
return err
}
tac.logger.Debug(tac.ctx, "got new DERP Map", slog.F("derp_map", dmp))