Skip to content

Commit

Permalink
reduce flakiness of deadline integration tests (quic-go#3383)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored and sudarshan-reddy committed Aug 9, 2022
1 parent 4bef4e2 commit 46f83e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integrationtests/self/deadline_test.go
Expand Up @@ -49,7 +49,7 @@ var _ = Describe("Stream deadline tests", func() {
server, serverStr, clientStr := setup()
defer server.Close()

const timeout = 20 * time.Millisecond
const timeout = time.Millisecond
done := make(chan struct{})
go func() {
defer GinkgoRecover()
Expand All @@ -75,7 +75,7 @@ var _ = Describe("Stream deadline tests", func() {
bytesRead += n
}
Expect(data).To(Equal(PRDataLong))
// make sure the test actually worked an Read actually ran into the deadline a few times
// make sure the test actually worked and Read actually ran into the deadline a few times
Expect(timeoutCounter).To(BeNumerically(">=", 10))
Eventually(done).Should(BeClosed())
})
Expand All @@ -84,7 +84,7 @@ var _ = Describe("Stream deadline tests", func() {
server, serverStr, clientStr := setup()
defer server.Close()

const timeout = 20 * time.Millisecond
const timeout = time.Millisecond
go func() {
defer GinkgoRecover()
_, err := serverStr.Write(PRDataLong)
Expand Down Expand Up @@ -134,7 +134,7 @@ var _ = Describe("Stream deadline tests", func() {
server, serverStr, clientStr := setup()
defer server.Close()

const timeout = 20 * time.Millisecond
const timeout = time.Millisecond
done := make(chan struct{})
go func() {
defer GinkgoRecover()
Expand Down Expand Up @@ -167,7 +167,7 @@ var _ = Describe("Stream deadline tests", func() {
server, serverStr, clientStr := setup()
defer server.Close()

const timeout = 20 * time.Millisecond
const timeout = time.Millisecond
readDone := make(chan struct{})
go func() {
defer GinkgoRecover()
Expand Down

0 comments on commit 46f83e9

Please sign in to comment.