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
```
release-2.3
Yicheng Qin 2015-09-16 14:08:40 -07:00
parent ec4142576e
commit f7efbe8b14
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ func TestBackendBatchIntervalCommit(t *testing.T) {
// give time for batch interval commit to happen
time.Sleep(time.Nanosecond)
testutil.WaitSchedule()
// give time for commit to finish, including possible disk IO
time.Sleep(50 * time.Millisecond)
// check whether put happens via db view
b.db.View(func(tx *bolt.Tx) error {