forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add e2e test for relayer loop (informalsystems#866)
* Add e2e test for relayer loop * Revert ft_transfer rename * Fix timeout test broken in previous commit * Make number_msgs parameter optional in packet_send * Fix the script to pass * Increase CI gas * Increase CI gas Co-authored-by: Anca Zamfir <[email protected]>
- Loading branch information
1 parent
2938637
commit 4f85848
Showing
5 changed files
with
241 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
from subprocess import Popen | ||
import logging as l | ||
from typing import Optional | ||
|
||
from .cmd import Config | ||
from .common import ChainId, PortId, ChannelId | ||
|
||
|
||
def start(c: Config, src: ChainId, dst: ChainId, src_port: Optional[PortId], src_channel: Optional[ChannelId]) -> Popen: | ||
args = [str(src), str(dst)] | ||
if src_port != None: | ||
args.extend(['-p', str(src_port)]) | ||
if src_channel != None: | ||
args.extend(['-c', str(src_channel)]) | ||
|
||
full_cmd = f'{c.relayer_cmd} -c {c.config_file} --json start'.split(' ') | ||
full_cmd.extend(args) | ||
|
||
l.debug(' '.join(full_cmd)) | ||
|
||
return Popen(full_cmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters