aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2019-01-23 23:09:29 +0800
committerGitHub <noreply@github.com>2019-01-23 23:09:29 +0800
commitdc43ea8d0394d9336ea7a3e2a920f3b55bb3189d (patch)
tree91fe94dd3d1131a718ad3ef579d1a5d43348ede1 /miner
parenta50b471b6b9c54eba795b74f6d74a09d531af9dc (diff)
downloadgo-tangerine-dc43ea8d0394d9336ea7a3e2a920f3b55bb3189d.tar
go-tangerine-dc43ea8d0394d9336ea7a3e2a920f3b55bb3189d.tar.gz
go-tangerine-dc43ea8d0394d9336ea7a3e2a920f3b55bb3189d.tar.bz2
go-tangerine-dc43ea8d0394d9336ea7a3e2a920f3b55bb3189d.tar.lz
go-tangerine-dc43ea8d0394d9336ea7a3e2a920f3b55bb3189d.tar.xz
go-tangerine-dc43ea8d0394d9336ea7a3e2a920f3b55bb3189d.tar.zst
go-tangerine-dc43ea8d0394d9336ea7a3e2a920f3b55bb3189d.zip
tests: tune flaky tests that error in travis occasionally (#18508)
* tests: tune flaky tests that error in travis occasionally * tests: formatting
Diffstat (limited to 'miner')
-rw-r--r--miner/worker_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker_test.go b/miner/worker_test.go
index 7c8f167a1..bfa9cbd21 100644
--- a/miner/worker_test.go
+++ b/miner/worker_test.go
@@ -224,7 +224,7 @@ func testEmptyWork(t *testing.T, chainConfig *params.ChainConfig, engine consens
for i := 0; i < 2; i += 1 {
select {
case <-taskCh:
- case <-time.NewTimer(time.Second).C:
+ case <-time.NewTimer(2 * time.Second).C:
t.Error("new task timeout")
}
}