Merge pull request #2981 from lucas-clemente/fix-flaky-qlog-test

fix flaky qlog test
This commit is contained in:
Marten Seemann
2021-01-15 16:57:18 +08:00
committed by GitHub

View File

@@ -692,7 +692,7 @@ var _ = Describe("Tracing", func() {
Expect(ev).To(HaveKeyWithValue("packet_number_space", "handshake"))
Expect(ev).To(HaveKey("delta"))
delta := time.Duration(ev["delta"].(float64)*1e6) * time.Nanosecond
Expect(entry.Time.Add(delta)).To(BeTemporally("~", timeout, 10*time.Microsecond))
Expect(entry.Time.Add(delta)).To(BeTemporally("~", timeout, scaleDuration(10*time.Microsecond)))
})
It("records when the loss timer expires", func() {