Skip to content

Commit

Permalink
fix TestPlanStringer
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Oct 21, 2020
1 parent eddbe0c commit 62c1fc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions x/upgrade/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,17 @@ func TestPlanStringer(t *testing.T) {
require.Equal(t, `Upgrade Plan
Name: test
Time: 2020-01-01T00:00:00Z
Info:
Info: .
Upgraded IBC Client: no upgraded client provided`, types.Plan{Name: "test", Time: ti}.String())
require.Equal(t, `Upgrade Plan
Name: test
Height: 100
Info:
Info: .
Upgraded IBC Client: no upgraded client provided`, types.Plan{Name: "test", Height: 100}.String())
require.Equal(t, fmt.Sprintf(`Upgrade Plan
Name: test
Height: 100
Info:
Info: .
Upgraded IBC Client: %s`, clientState), types.Plan{Name: "test", Height: 100, UpgradedClientState: cs}.String())
}

Expand Down
2 changes: 1 addition & 1 deletion x/upgrade/types/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (p Plan) String() string {
return fmt.Sprintf(`Upgrade Plan
Name: %s
%s
Info: %s
Info: %s.
Upgraded IBC Client: %s`, p.Name, dueUp, p.Info, upgradedClientStr)
}

Expand Down

0 comments on commit 62c1fc5

Please sign in to comment.