Skip to content

Commit 01997c1

Browse files
author
Brett Hazen
committed
Add 1 second delay to allow YZ index to catch up
1 parent 0730441 commit 01997c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

riak/tests/test_mapreduce.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from riak.mapreduce import RiakMapReduce
44
from riak import key_filter, RiakError
55
import platform
6+
import time
67
if platform.python_version() < '2.7':
78
unittest = __import__('unittest2')
89
else:
@@ -373,6 +374,7 @@ def test_mr_search(self):
373374
"sugar_i": 12,
374375
"calories_i": 110,
375376
"fruit_b": False}).store()
377+
time.sleep(1)
376378
mr = self.client.search(self.mr_bucket, 'fruit_b:false')
377379
mr.map("""function(v) {
378380
var solr_doc = JSON.parse(v.values[0].data);

0 commit comments

Comments
 (0)