Skip to content

Commit

Permalink
Add test PFM with grace period (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 authored Mar 19, 2024
1 parent aae9855 commit 4d408ba
Show file tree
Hide file tree
Showing 6 changed files with 374 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e-test-workflow-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- "e2e-test-ibc-grace-period"
- "e2e-test-eibc-fulfillment"
- "e2e-test-transfer-multi-hop"
- "e2e-test-pfm-with-grace-period"
- "e2e-test-batch-finalization"
- "e2e-test-rollapp-freeze"
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- "e2e-test-ibc-grace-period"
- "e2e-test-eibc-fulfillment"
- "e2e-test-transfer-multi-hop"
- "e2e-test-pfm-with-grace-period"
- "e2e-test-batch-finalization"
- "e2e-test-rollapp-freeze"
fail-fast: false
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ e2e-test-ibc-grace-period: clean-e2e
e2e-test-transfer-multi-hop: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferMultiHop .

e2e-test-pfm-with-grace-period: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCPFMWithGracePeriod .
e2e-test-batch-finalization:
cd tests && go test -timeout=25m -race -v -run TestBatchFinalization .

Expand All @@ -38,6 +40,7 @@ e2e-test-all: e2e-test-ibc-success \
e2e-test-transfer-multi-hop \
e2e-test-eibc-fulfillment \
e2e-test-transfer-multi-hop \
e2e-test-pfm-with-grace-period \
e2e-test-batch-finalization \
e2e-test-rollapp-freeze

Expand All @@ -49,5 +52,6 @@ e2e-test-all: e2e-test-ibc-success \
e2e-test-transfer-multi-hop \
e2e-test-eibc-fulfillment \
e2e-test-transfer-multi-hop \
e2e-test-pfm-with-grace-period \
e2e-test-batch-finalization \
e2e-test-rollapp-freeze
e2e-test-rollapp-freeze
14 changes: 0 additions & 14 deletions tests/ibc_pfm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ import (
"go.uber.org/zap/zaptest"
)

type PacketMetadata struct {
Forward *ForwardMetadata `json:"forward"`
}

type ForwardMetadata struct {
Receiver string `json:"receiver"`
Port string `json:"port"`
Channel string `json:"channel"`
Timeout time.Duration `json:"timeout"`
Retries *uint8 `json:"retries,omitempty"`
Next *string `json:"next,omitempty"`
RefundSequence *uint64 `json:"refund_sequence,omitempty"`
}

func TestIBCTransferMultiHop(t *testing.T) {
if testing.Short() {
t.Skip()
Expand Down
Loading

0 comments on commit 4d408ba

Please sign in to comment.