mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-17 12:14:33 +08:00
give test time to find zonefile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user