fix index variable

This commit is contained in:
Jude Nelson
2017-02-26 02:43:09 -05:00
parent db1d3d92b8
commit 30da7419de

View File

@@ -50,8 +50,8 @@ def scenario( wallets, **kw ):
testlib.next_block( **kw )
wallet = testlib.blockstack_client_initialize_wallet( "0123456789abcdef", wallets[2].privkey, wallets[3].privkey, None )
for i in xrange(0, 3):
resp = testlib.blockstack_cli_register( "foo_%s.test" % i, "0123456789abcdef" )
for j in xrange(0, 3):
resp = testlib.blockstack_cli_register( "foo_%s.test" % j, "0123456789abcdef" )
if 'error' in resp:
print >> sys.stderr, json.dumps(resp, indent=4, sort_keys=True)
return False
@@ -61,7 +61,7 @@ def scenario( wallets, **kw ):
testlib.next_block( **kw )
# wait for the poller to pick them up
print >> sys.stderr, "Waiting 10 seconds for the backend to submit the registers on foo_%s.test" % i
print >> sys.stderr, "Waiting 10 seconds for the backend to submit the registers on foo_%s.test" % j
time.sleep(10)
# wait for the registers to get confirmed
@@ -72,7 +72,7 @@ def scenario( wallets, **kw ):
testlib.next_block( **kw )
print >> sys.stderr, "Waiting 10 seconds for the backend to acknowledge registrations on foo_%s.test" % i
print >> sys.stderr, "Waiting 10 seconds for the backend to acknowledge registrations on foo_%s.test" % j
time.sleep(10)
# wait for update to get confirmed
@@ -83,7 +83,7 @@ def scenario( wallets, **kw ):
testlib.next_block( **kw )
print >> sys.stderr, "Waiting 10 seconds for the backend to acknowledge update on foo_%s.test" % i
print >> sys.stderr, "Waiting 10 seconds for the backend to acknowledge update on foo_%s.test" % j
time.sleep(10)