mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
storage/backend: extend wait timeout for commit to finish
It needs to take more time on travis. Fix: ``` --- FAIL: TestBackendBatchIntervalCommit (0.01s) backend_test.go:113: bucket test does not exit ```
This commit is contained in:
parent
ec4142576e
commit
f7efbe8b14
@ -105,6 +105,8 @@ func TestBackendBatchIntervalCommit(t *testing.T) {
|
|||||||
// give time for batch interval commit to happen
|
// give time for batch interval commit to happen
|
||||||
time.Sleep(time.Nanosecond)
|
time.Sleep(time.Nanosecond)
|
||||||
testutil.WaitSchedule()
|
testutil.WaitSchedule()
|
||||||
|
// give time for commit to finish, including possible disk IO
|
||||||
|
time.Sleep(50 * time.Millisecond)
|
||||||
|
|
||||||
// check whether put happens via db view
|
// check whether put happens via db view
|
||||||
b.db.View(func(tx *bolt.Tx) error {
|
b.db.View(func(tx *bolt.Tx) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user