mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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:
parent
3ba147e702
commit
8103188b9b
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue