mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
para: Show more detail on failed time test
Give us more visibility into how badly a given host is failing in the time test. Updates #6963
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
3ba147e702
commit
8103188b9b
@@ -81,6 +81,9 @@ func TestPara(t *testing.T) {
|
|||||||
|
|
||||||
c.Assert(r.Wait(), qt.IsNil)
|
c.Assert(r.Wait(), qt.IsNil)
|
||||||
c.Assert(counter, qt.Equals, int64(n))
|
c.Assert(counter, qt.Equals, int64(n))
|
||||||
c.Assert(time.Since(start) < n/2*time.Millisecond, qt.Equals, true)
|
|
||||||
|
since := time.Since(start)
|
||||||
|
limit := n / 2 * time.Millisecond
|
||||||
|
c.Assert(since < limit, qt.Equals, true, qt.Commentf("%s >= %s", since, limit))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user