mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore(cli): address cli netcheck test flake (#13492)
* netcheck: removes check for healthy node report in test * coderd/healthcheck/derphealth: do not override parent context deadline
This commit is contained in:
@@ -236,8 +236,12 @@ func (r *NodeReport) derpURL() *url.URL {
|
||||
}
|
||||
|
||||
func (r *NodeReport) Run(ctx context.Context) {
|
||||
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
|
||||
defer cancel()
|
||||
// If there already is a deadline set on the context, do not override it.
|
||||
if _, ok := ctx.Deadline(); !ok {
|
||||
dCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
|
||||
defer cancel()
|
||||
ctx = dCtx
|
||||
}
|
||||
|
||||
r.Severity = health.SeverityOK
|
||||
r.ClientLogs = [][]string{}
|
||||
|
||||
Reference in New Issue
Block a user