mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #87052 from oomichi/add-error-handling-issue86678
Add error handling of CloseWrite()
This commit is contained in:
commit
e3f90df767
@ -321,7 +321,9 @@ func doTestMustConnectSendDisconnect(bindAddress string, f *framework.Framework)
|
||||
fmt.Fprint(conn, "abc")
|
||||
|
||||
ginkgo.By("Closing the write half of the client's connection")
|
||||
conn.CloseWrite()
|
||||
if err = conn.CloseWrite(); err != nil {
|
||||
framework.Failf("Couldn't close the write half of the client's connection: %v", err)
|
||||
}
|
||||
|
||||
ginkgo.By("Reading data from the local port")
|
||||
fromServer, err := ioutil.ReadAll(conn)
|
||||
|
Loading…
Reference in New Issue
Block a user