Merge pull request #2774 from lucas-clemente/increase-stream-deadline-test

increase the threshold for the receive stream deadline test
This commit is contained in:
Marten Seemann
2020-09-14 13:55:05 +07:00
committed by GitHub

View File

@@ -256,7 +256,7 @@ var _ = Describe("Receive Stream", func() {
n, err := strWithTimeout.Read(b)
Expect(err).To(MatchError(errDeadline))
Expect(n).To(BeZero())
Expect(time.Now()).To(BeTemporally("~", deadline, scaleDuration(10*time.Millisecond)))
Expect(time.Now()).To(BeTemporally("~", deadline, scaleDuration(20*time.Millisecond)))
})
It("doesn't unblock if the deadline is changed before the first one expires", func() {