Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bugfix (404-faucet-request-neon-in-galans)
  • Loading branch information
vakond committed Dec 4, 2021
commit 2f0672376fdf4a1c086c2c42b2c8e75ebceb5680
10 changes: 5 additions & 5 deletions proxy/testing/test_neon_faucet.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ def start_faucet(self):
self.faucet = subprocess.Popen(['faucet', 'run', '--workers', '1'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

# @unittest.skip("a.i.")
def test_neon_faucet_01_eth_token(self):
def test_neon_faucet_01_neon_in_galans(self):
print()
# First request - trigger creation of the account without real transfer
url = 'http://localhost:{}/request_neon_in_galans'.format(os.environ['FAUCET_RPC_PORT'])
# First request - trigger creation of the account without real transfer
data = '{"wallet": "' + user.address + '", "amount": 0}'
r = requests.post(url, data=data)
if not r.ok:
Expand All @@ -200,13 +200,13 @@ def test_neon_faucet_01_eth_token(self):
balance_after = proxy.eth.get_balance(user.address)
print('NEO balance after:', balance_after)
print('NEO balance difference:', balance_after - balance_before)
self.assertEqual(balance_after - balance_before, 99999)
self.assertEqual(balance_after - balance_before, 99999000000000)

# @unittest.skip("a.i.")
def test_neon_faucet_02_eth_token(self):
print()
# First request - trigger creation of the account without real transfer
url = 'http://localhost:{}/request_eth_token'.format(os.environ['FAUCET_RPC_PORT'])
# First request - trigger creation of the account without real transfer
data = '{"wallet": "' + user.address + '", "amount": 0}'
r = requests.post(url, data=data)
if not r.ok:
Expand All @@ -229,11 +229,11 @@ def test_neon_faucet_02_eth_token(self):
# @unittest.skip("a.i.")
def test_neon_faucet_03_erc20_tokens(self):
print()
url = 'http://localhost:{}/request_erc20_tokens'.format(os.environ['FAUCET_RPC_PORT'])
a_before = self.get_token_balance(self.token_a, user.address)
b_before = self.get_token_balance(self.token_b, user.address)
print('token A balance before:', a_before)
print('token B balance before:', b_before)
url = 'http://localhost:{}/request_erc20_tokens'.format(os.environ['FAUCET_RPC_PORT'])
data = '{"wallet": "' + user.address + '", "amount": 1}'
r = requests.post(url, data=data)
if not r.ok:
Expand Down