Commit 96feaeba authored by Sameer Ajmani's avatar Sameer Ajmani

context: attempt to deflake TestLayersTimeout with timer padding.

Fixes #11512.

Change-Id: Iaf98ec25fb16a2409c1ff7d110afa6477267d3e1
Reviewed-on: https://go-review.googlesource.com/13643Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent cd8c2701
...@@ -536,7 +536,7 @@ func testLayers(t *testing.T, seed int64, testTimeout bool) { ...@@ -536,7 +536,7 @@ func testLayers(t *testing.T, seed int64, testTimeout bool) {
if testTimeout { if testTimeout {
select { select {
case <-ctx.Done(): case <-ctx.Done():
case <-time.After(timeout + timeout/10): case <-time.After(timeout + 100*time.Millisecond):
errorf("ctx should have timed out") errorf("ctx should have timed out")
} }
checkValues("after timeout") checkValues("after timeout")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment