Skip to content

Commit

Permalink
test: restore height based plan test
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Feb 10, 2023
1 parent ade37bf commit 6e65f5f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions x/upgrade/types/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ func TestPlanValid(t *testing.T) {
p types.Plan
valid bool
}{
"proper by height": {
p: types.Plan{
Name: "all-good",
Height: 123450000,
},
valid: true,
},
"no name": {
p: types.Plan{
Height: 123450000,
},
},
"IBC upgrade": {
p: types.Plan{
Height: 123450000,
Expand All @@ -70,6 +82,12 @@ func TestPlanValid(t *testing.T) {
Info: "important",
},
},
"negative height": {
p: types.Plan{
Name: "minus",
Height: -12345,
},
},
}

for name, tc := range cases {
Expand Down

0 comments on commit 6e65f5f

Please sign in to comment.