test suite: minor fixes

This commit is contained in:
The MMGen Project 2022-10-05 19:22:29 +00:00
commit e7cbfc2bd1
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 6 additions and 3 deletions

View file

@ -78,8 +78,11 @@ from test.overlay import get_overlay_dir,overlay_setup
overlay_dir = get_overlay_dir(repo_root)
sys.path.insert(0,overlay_dir)
if not (len(sys.argv) == 2 and sys.argv[1] == 'clean'):
'hack: overlay must be set up before mmgen mods are imported'
if sys.argv[-1] == 'clean':
from shutil import rmtree
rmtree(overlay_dir,ignore_errors=True)
else:
# overlay must be set up before importing mmgen mods!
overlay_setup(repo_root)
from mmgen.common import *

View file

@ -994,7 +994,7 @@ class TestSuiteEthdev(TestSuiteBase,TestSuiteShared):
start_gas = ETHAmt(60000,'wei'),
gasPrice = ETHAmt(8,'Gwei') )
if self.daemon.id == 'geth': # yet another Geth bug
await asyncio.sleep(0.3)
await asyncio.sleep(0.5)
if (await self.get_tx_receipt(txid)).status == 0:
die(2,'Transfer of token funds failed. Aborting')