We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 526acc1 commit 9d999edCopy full SHA for 9d999ed
testing/it_sidecar/it_sidecar.go
@@ -415,13 +415,8 @@ func main() {
415
416
fmt.Println("READY")
417
<-ctx.Done()
418
- switch ctx.Err() {
419
- case context.DeadlineExceeded:
420
- log.Print("Deadline exceeded")
421
- case context.Canceled:
422
- log.Print("Context Canceled")
423
- default:
424
- log.Print(ctx.Err())
+ if cause := context.Cause(ctx); cause != nil {
+ log.Print("ctx.Done: ", cause.Error())
425
}
426
427
0 commit comments