Merge pull request #3548 from yichengq/travis

storage/backend: extend wait timeout for commit to finish
This commit is contained in:
Yicheng Qin 2015-09-16 14:22:46 -07:00
commit 97b67fdbfc

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 {