Fix bug in FaucetGet where it returns an int instead of a string
This commit is contained in:
@@ -68,7 +68,7 @@ class CryptoConditionsTest (BitcoinTestFramework):
|
||||
assert_greater_than(result['balance'], 0.0)
|
||||
balance = result['balance']
|
||||
|
||||
# Begin actual CC tests
|
||||
###### Begin actual CC tests ######
|
||||
|
||||
# Faucet tests
|
||||
faucet = rpc.faucetaddress()
|
||||
@@ -77,6 +77,10 @@ class CryptoConditionsTest (BitcoinTestFramework):
|
||||
for x in ['myCCaddress', 'FaucetCCaddress', 'Faucetmarker', 'myaddress']:
|
||||
assert_equal(faucet[x][0], 'R')
|
||||
|
||||
# no funds in the faucet yet
|
||||
result = rpc.faucetget()
|
||||
assert_equal(result['result'], 'error')
|
||||
|
||||
result = rpc.faucetinfo()
|
||||
assert_equal(result['result'], 'success')
|
||||
|
||||
@@ -86,9 +90,6 @@ class CryptoConditionsTest (BitcoinTestFramework):
|
||||
result = rpc.faucetfund("-1")
|
||||
assert_equal(result['result'], 'error')
|
||||
|
||||
# why does this fail?
|
||||
#result = rpc.faucetfund("1987")
|
||||
|
||||
# we need at least 1 + txfee to get
|
||||
result = rpc.faucetfund("2")
|
||||
assert_equal(result['result'], 'success')
|
||||
|
||||
Reference in New Issue
Block a user