Commit 13e2455
authored
correctly check nil stream (#8905)
Fixes: #8893
This PR changes the
`[checkForHealthyStream`](https://github.com/grpc/grpc-go/blob/944f0585ca8664eb8f09635531c3c9d52d1e8bbb/internal/transport/keepalive_test.go#L815)
function in keepalive_test.go to check for nil stream before closing the
stream. This will make sure the error is returned and logged correctly
instead of throwing a panic when the stream creation fails.
RELEASE NOTES: None1 parent 944f058 commit 13e2455
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
820 | | - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
821 | 824 | | |
822 | 825 | | |
823 | 826 | | |
| |||
0 commit comments