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
unskip test_canceled
  • Loading branch information
sinev-valentine committed Nov 2, 2021
commit c109d8649b7868b5cdf45f07be58948f20aa7c41
6 changes: 3 additions & 3 deletions proxy/test_cancel_hanged.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import sys

from proxy.plugin.solana_rest_api_tools import sysinstruct, ETH_TOKEN_MINT_ID, system, send_transaction
from proxy.plugin.solana_rest_api_tools import sysinstruct, ETH_TOKEN_MINT_ID, system, send_transaction, MINIMAL_GAS_PRICE

sys.path.append("/spl/bin/")
os.environ['SOLANA_URL'] = "http://solana:8899"
Expand Down Expand Up @@ -149,7 +149,7 @@ def deploy_contract(self):
def create_hanged_transaction(self):
print("\ncommit_two_event_trx")
right_nonce = proxy.eth.get_transaction_count(proxy.eth.default_account)
trx_store = self.storage_contract.functions.addReturnEventTwice(1, 1).buildTransaction({'nonce': right_nonce})
trx_store = self.storage_contract.functions.addReturnEventTwice(1, 1).buildTransaction({'nonce': right_nonce, 'gasPrice': MINIMAL_GAS_PRICE})
trx_store_signed = proxy.eth.account.sign_transaction(trx_store, eth_account.key)

(from_addr, sign, msg) = make_instruction_data_from_tx(trx_store_signed.rawTransaction.hex())
Expand Down Expand Up @@ -234,7 +234,7 @@ def create_storage_account(self, seed):

return storage

@unittest.skip("a.i.")
# @unittest.skip("a.i.")
def test_canceled(self):
print("\ntest_canceled")
trx_receipt = proxy.eth.wait_for_transaction_receipt(self.tx_hash)
Expand Down