give test time to find zonefile

This commit is contained in:
Jude Nelson
2017-10-11 14:39:47 -04:00
parent cda33ba162
commit 5d8945738e

View File

@@ -157,27 +157,37 @@ def scenario( wallets, **kw ):
# wait for register to go through
print 'Wait for register to be submitted'
time.sleep(10)
# wait for the register to get confirmed
for i in xrange(0, 6):
testlib.next_block( **kw )
res = testlib.verify_in_queue(None, 'bar.test', 'register', None, api_pass = api_pass )
if not res:
return False
for i in xrange(0, 6):
testlib.next_block( **kw )
print 'Wait for update to be submitted'
time.sleep(10)
# wait for update to get confirmed
for i in xrange(0, 6):
testlib.next_block( **kw )
res = testlib.verify_in_queue(None, 'bar.test', 'update', None, api_pass = api_pass )
if not res:
print res
print "update error in first update"
return False
for i in xrange(0, 6):
testlib.next_block( **kw )
print 'Wait for zonefile to be sent'
time.sleep(10)
res = testlib.blockstack_REST_call("GET", "/v1/names/bar.test",
None, api_pass=api_pass)
if 'error' in res or res['http_status'] != 200:
@@ -185,6 +195,8 @@ def scenario( wallets, **kw ):
print json.dumps(res)
return False
print res['response']
zonefile_hash = res['response']['zonefile_hash']
# should still be registered