fix flaky timeout integration test (#3818)

This commit is contained in:
Marten Seemann 2023-05-12 10:12:40 +03:00 committed by GitHub
parent 22ca1fb8a5
commit b425465bf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -455,6 +455,7 @@ var _ = Describe("Timeout tests", func() {
case serverErr := <-serverErrChan:
Expect(serverErr).To(HaveOccurred())
Expect(serverErr.Error()).To(ContainSubstring(io.ErrClosedPipe.Error()))
defer ln.Close()
default:
Expect(ln.Close()).To(Succeed())
Eventually(serverErrChan).Should(Receive())