We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01997c1 commit b70b96bCopy full SHA for b70b96b
riak/tests/test_mapreduce.py
@@ -374,7 +374,9 @@ def test_mr_search(self):
374
"sugar_i": 12,
375
"calories_i": 110,
376
"fruit_b": False}).store()
377
- time.sleep(1)
+ # Wait for Solr to catch up
378
+ while len(bucket.search('_yz_rk:Crunch')['docs']) == 0:
379
+ pass
380
mr = self.client.search(self.mr_bucket, 'fruit_b:false')
381
mr.map("""function(v) {
382
var solr_doc = JSON.parse(v.values[0].data);
0 commit comments