mirror of https://github.com/apache/lucene.git
SOLR-10494: fix smoker
This commit is contained in:
parent
6a59253ec3
commit
56ad1a7a9b
|
@ -858,11 +858,11 @@ def testSolrExample(unpackPath, javaPath, isSrc):
|
|||
run('sh ./exampledocs/test_utf8.sh http://localhost:8983/solr/techproducts', 'utf8.log')
|
||||
print(' run query...')
|
||||
s = load('http://localhost:8983/solr/techproducts/select/?q=video')
|
||||
if s.find('<result name="response" numFound="3" start="0">') == -1:
|
||||
if s.find('"numFound":3,"start":0') == -1:
|
||||
print('FAILED: response is:\n%s' % s)
|
||||
raise RuntimeError('query on solr example instance failed')
|
||||
s = load('http://localhost:8983/v2/cores')
|
||||
if s.find('"responseHeader":{"status":0') == -1:
|
||||
if s.find('"status":0,') == -1:
|
||||
print('FAILED: response is:\n%s' % s)
|
||||
raise RuntimeError('query api v2 on solr example instance failed')
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue